mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix unlogged account error not showing (#365)
This commit is contained in:
commit
80e928ee43
@ -196,8 +196,8 @@ public abstract record Filter<T> : Filter
|
|||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
from lq in Parse.Char('"').Or(Parse.Char('\''))
|
from lq in Parse.Char('"').Or(Parse.Char('\''))
|
||||||
from str in Parse.AnyChar.Where(x => x is not '"' and not '\'').Many().Text()
|
from str in Parse.AnyChar.Where(x => x != lq).Many().Text()
|
||||||
from rq in Parse.Char('"').Or(Parse.Char('\''))
|
from rq in Parse.Char(lq)
|
||||||
select str
|
select str
|
||||||
).Or(Parse.LetterOrDigit.Many().Text());
|
).Or(Parse.LetterOrDigit.Many().Text());
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ export const AccountProvider = ({
|
|||||||
<AccountContext.Provider value={accounts}>
|
<AccountContext.Provider value={accounts}>
|
||||||
<ConnectionErrorContext.Provider
|
<ConnectionErrorContext.Provider
|
||||||
value={{
|
value={{
|
||||||
error: selected ? initialSsrError.current ?? user.error ?? permissionError : null,
|
error: (selected ? initialSsrError.current ?? user.error : null) ?? permissionError,
|
||||||
loading: user.isLoading,
|
loading: user.isLoading,
|
||||||
retry: () => {
|
retry: () => {
|
||||||
queryClient.invalidateQueries({ queryKey: ["auth", "me"] });
|
queryClient.invalidateQueries({ queryKey: ["auth", "me"] });
|
||||||
|
@ -26,7 +26,6 @@ import { useTranslation } from "react-i18next";
|
|||||||
import { View } from "react-native";
|
import { View } from "react-native";
|
||||||
import { useYoshiki } from "yoshiki/native";
|
import { useYoshiki } from "yoshiki/native";
|
||||||
import { DefaultLayout } from "../layout";
|
import { DefaultLayout } from "../layout";
|
||||||
import { ErrorView } from "./error";
|
|
||||||
import Register from "@material-symbols/svg-400/rounded/app_registration.svg";
|
import Register from "@material-symbols/svg-400/rounded/app_registration.svg";
|
||||||
|
|
||||||
export const ConnectionError = () => {
|
export const ConnectionError = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user