disable email query if takendown

This commit is contained in:
Samuel Newman
2025-07-18 11:48:21 +03:00
parent 95ab4fa0a1
commit 45a737afaf
2 changed files with 2 additions and 2 deletions
@@ -47,7 +47,7 @@ export function useAccountEmailState() {
email2FAEnabled: !!agent.session?.emailAuthFactor,
}
const query = useQuery<AccountEmailState>({
enabled: !!agent.session,
enabled: !!agent.session && agent.session.status !== 'takendown',
refetchOnWindowFocus: true,
queryKey: accountEmailStateQueryKey,
queryFn: async () => {
+1 -1
View File
@@ -119,7 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
)
const logoutCurrentAccount = React.useCallback<
SessionApiContext['logoutEveryAccount']
SessionApiContext['logoutCurrentAccount']
>(
logContext => {
addSessionDebugLog({type: 'method:start', method: 'logout'})