mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 19:25:47 +03:00
Try fix non-logged-in bug
This commit is contained in:
parent
bf76728528
commit
9fc8154237
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import MenuLink from './menu-link';
|
||||||
function NavMenu(props) {
|
function NavMenu(props) {
|
||||||
const snapStates = useSnapshot(states);
|
const snapStates = useSnapshot(states);
|
||||||
const { instance, authenticated } = api();
|
const { instance, authenticated } = api();
|
||||||
const accounts = store.local.getJSON('accounts');
|
const accounts = store.local.getJSON('accounts') || [];
|
||||||
const currentAccount = accounts.find(
|
const currentAccount = accounts.find(
|
||||||
(account) => account.info.id === store.session.get('currentAccount'),
|
(account) => account.info.id === store.session.get('currentAccount'),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue