Skip to content

Commit

Permalink
Merge branch 'dev' into l10n_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored May 3, 2024
2 parents 0e90c0c + 3779331 commit abb7e08
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/ui/components/core/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,18 @@ export const UserAvatar = ({
}
}
}
const showLoadingState = loading || status === 'loading' || router.isFallback

const areWeStillLoading = () => {
if (loading || status === 'loading') {
return true
}
if (typeof window !== 'undefined') {
return router.isFallback
}
return false
}

const showLoadingState = areWeStillLoading()
if (showLoadingState) {
return (
<Group className={classes.group}>
Expand Down

0 comments on commit abb7e08

Please sign in to comment.