Skip to content

Commit

Permalink
Merge pull request #176 from onflow/huyndo/fix-initialization
Browse files Browse the repository at this point in the history
Prevent account initialization from firing multiple times at once
  • Loading branch information
Huy Nguyen authored Dec 14, 2022
2 parents 5b0c113 + 959ee6d commit bcfad6e
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 bcfad6e

Please sign in to comment.