tamaina 2021-03-23 21:36:30 +09:00
parent cbf885d05a
commit 8ada2d78ed
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export async function getAccounts(): Promise<{ id: Account['id'], token: Account
export async function addAccount(id: Account['id'], token: Account['token']) {
const accounts = await getAccounts();
if (!accounts.some(x => x.id === id)) {
return set('accounts', accounts.concat([{ id, token }]));
await set('accounts', accounts.concat([{ id, token }]));
}
}