Skip to content

Commit

Permalink
"logged in as" was showing when had no user
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Dec 16, 2024
1 parent cf53879 commit d474f8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/desktop-client/src/components/LoggedInUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ export function LoggedInUser({
>
{serverMessage()}
</Button>
{!hasSyncedPrefs && (
{!loading &&
multiuserEnabled &&
userData &&
userData?.displayName &&
!hasSyncedPrefs && (
<small>
<Trans>
(logged in as: <span>{userData?.displayName}</span>)
Expand Down

0 comments on commit d474f8e

Please sign in to comment.