Fixed issue in FooterBar for when no user exists
• Fixed: - issue in FooterBar for when no user exists
This commit is contained in:
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user