Skip to content

Commit d379613

Browse files
arthurdennerCompuIves
authored andcommitted
fix(signout): Using store.isLoggedIn instead of store.user to compute if UserMenu should render in Navigation (codesandbox#906)
1 parent 1f17096 commit d379613

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/pages/common/Navigation

1 file changed

+2
-2
lines changed

packages/app/src/app/pages/common/Navigation/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import UserMenu from '../UserMenu';
1414
import { LogoWithBorder, Border, Title, Actions, Action } from './elements';
1515

1616
function Navigation({ signals, store, title }) {
17-
const { user, isPatron } = store;
17+
const { isLoggedIn, isPatron } = store;
1818

1919
return (
2020
<Row justifyContent="space-between">
@@ -51,7 +51,7 @@ function Navigation({ signals, store, title }) {
5151
</Tooltip>
5252
</Action>
5353
</Actions>
54-
{user ? <UserMenu /> : <SignInButton />}
54+
{isLoggedIn ? <UserMenu /> : <SignInButton />}
5555
</Row>
5656
</Row>
5757
);

0 commit comments

Comments
 (0)