From dbc5fa1eb2333f2b1432222d6dcd5ab768c35ed9 Mon Sep 17 00:00:00 2001 From: Paradoxe Ngwasi Date: Fri, 8 Mar 2024 09:02:59 +0000 Subject: [PATCH] minor improvements --- apps/web/app/hooks/auth/useAuthenticationPasscode.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/app/hooks/auth/useAuthenticationPasscode.ts b/apps/web/app/hooks/auth/useAuthenticationPasscode.ts index 86c0deced..986a9c46c 100644 --- a/apps/web/app/hooks/auth/useAuthenticationPasscode.ts +++ b/apps/web/app/hooks/auth/useAuthenticationPasscode.ts @@ -59,7 +59,11 @@ export function useAuthenticationPasscode() { const { queryCall: signInEmailQueryCall, loading: signInEmailLoading } = useQuery(signInEmailAPI); const { queryCall: signInEmailConfirmQueryCall, loading: signInEmailConfirmLoading } = useQuery(signInEmailConfirmAPI); - const { queryCall: signInWorkspaceQueryCall, loading: signInWorkspaceLoading } = useQuery(signInWorkspaceAPI); + const { + queryCall: signInWorkspaceQueryCall, + loading: signInWorkspaceLoading, + infiniteLoading: infiniteWLoading + } = useQuery(signInWorkspaceAPI); const { queryCall, loading, infiniteLoading } = useQuery(signInWithEmailAndCodeAPI); @@ -219,7 +223,7 @@ export function useAuthenticationPasscode() { return; } - infiniteLoading.current = true; + infiniteWLoading.current = true; signInToWorkspaceRequest({ email: formValues.email,