wip
This commit is contained in:
parent
6b11344b16
commit
3ce28b706a
3 changed files with 14 additions and 5 deletions
|
|
@ -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 }]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue