Fix unlogged account error not showing (#365)

This commit is contained in:
Zoe Roux 2024-03-27 02:03:50 +01:00 committed by GitHub
commit 80e928ee43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -196,8 +196,8 @@ public abstract record Filter<T> : Filter
{
return (
from lq in Parse.Char('"').Or(Parse.Char('\''))
from str in Parse.AnyChar.Where(x => x is not '"' and not '\'').Many().Text()
from rq in Parse.Char('"').Or(Parse.Char('\''))
from str in Parse.AnyChar.Where(x => x != lq).Many().Text()
from rq in Parse.Char(lq)
select str
).Or(Parse.LetterOrDigit.Many().Text());
}

View File

@ -164,7 +164,7 @@ export const AccountProvider = ({
<AccountContext.Provider value={accounts}>
<ConnectionErrorContext.Provider
value={{
error: selected ? initialSsrError.current ?? user.error ?? permissionError : null,
error: (selected ? initialSsrError.current ?? user.error : null) ?? permissionError,
loading: user.isLoading,
retry: () => {
queryClient.invalidateQueries({ queryKey: ["auth", "me"] });

View File

@ -26,7 +26,6 @@ import { useTranslation } from "react-i18next";
import { View } from "react-native";
import { useYoshiki } from "yoshiki/native";
import { DefaultLayout } from "../layout";
import { ErrorView } from "./error";
import Register from "@material-symbols/svg-400/rounded/app_registration.svg";
export const ConnectionError = () => {