Immediately I found a bug right after I toot about it

This commit is contained in:
Lim Chee Aun 2023-02-10 01:01:06 +08:00
parent 700ecc009a
commit a4df58d297

View file

@ -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() {