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',
|
title: 'Menu',
|
||||||
isHidden: !me,
|
isHidden: !me,
|
||||||
active: currentPathname === `/${account.get('username')}`,
|
active: !!account ? currentPathname === `/${account.get('username')}` : false,
|
||||||
onClick: onOpenSidebar,
|
onClick: onOpenSidebar,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -100,7 +100,7 @@ class FooterBar extends ImmutablePureComponent {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
} else if (props.title === 'Menu') {
|
} else if (props.title === 'Menu' && !!account) {
|
||||||
const avatarContainerClasses = CX({
|
const avatarContainerClasses = CX({
|
||||||
d: 1,
|
d: 1,
|
||||||
circle: 1,
|
circle: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user