Skip to content

Commit

Permalink
Prevent account initialization from firing multiple times at once
Browse files Browse the repository at this point in the history
  • Loading branch information
huyndo committed Dec 14, 2022
1 parent 5b0c113 commit 959ee6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contexts/AuthnContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function AuthnContextProvider({children}: {children: React.ReactNode}) {
}

initialize()
})
}, [])

if (error) return <Err title="Initialization Error" error={error} />
if (isLoading) return <Spinner />
Expand Down

0 comments on commit 959ee6d

Please sign in to comment.