This commit is contained in:
tamaina
2021-01-30 19:56:36 +09:00
parent 6b11344b16
commit 3ce28b706a
3 changed files with 14 additions and 5 deletions

View File

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