mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-28 04:09:18 +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) {
|
export function getAccount(id) {
|
||||||
const accounts = store.local.getJSON('accounts') || [];
|
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() {
|
export function getCurrentAccount() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue