Fixed issue in FooterBar for when no user exists

• Fixed:
- issue in FooterBar for when no user exists
This commit is contained in:
mgabdev 2020-10-30 13:18:42 -05:00
parent fea8dec545
commit 9f712198dc

@ -57,7 +57,7 @@ class FooterBar extends ImmutablePureComponent {
{
title: 'Menu',
isHidden: !me,
active: currentPathname === `/${account.get('username')}`,
active: !!account ? currentPathname === `/${account.get('username')}` : false,
onClick: onOpenSidebar,
},
]
@ -100,7 +100,7 @@ class FooterBar extends ImmutablePureComponent {
</span>
</div>
)
} else if (props.title === 'Menu') {
} else if (props.title === 'Menu' && !!account) {
const avatarContainerClasses = CX({
d: 1,
circle: 1,