mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 11:15:43 +03:00
Immediately I found a bug right after I toot about it
This commit is contained in:
parent
700ecc009a
commit
a4df58d297
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import store from './store';
|
|||
|
||||
export function getAccount(id) {
|
||||
const accounts = store.local.getJSON('accounts') || [];
|
||||
return accounts.find((a) => a.info.id === id);
|
||||
return accounts.find((a) => a.info.id === id) || accounts[0];
|
||||
}
|
||||
|
||||
export function getCurrentAccount() {
|
||||
|
|
Loading…
Reference in a new issue