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