Fix unlogged account error not showing

This commit is contained in:
Zoe Roux 2024-03-26 23:13:25 +01:00
parent e4f00d34bc
commit 78247acba7
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -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"] });

View File

@ -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 = () => {