Skip to content

Commit

Permalink
fix: show login modal before locale is loaded (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Mar 5, 2021
1 parent b29cb07 commit 98a7a56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapter/src/components/AuthBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export const AuthBoundary = ({ url, children }) => {
data && (data.userSettings.keyUiLocale || window.navigator.language)
)

if (loading || !locale) {
return <LoadingMask />
}

if (error) {
return <LoginModal url={url} />
}

if (loading || !locale) {
return <LoadingMask />
}

return children
}

Expand Down

0 comments on commit 98a7a56

Please sign in to comment.