From 8ada2d78ed8b2c9d055768dbe44858d8242e12c4 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 23 Mar 2021 21:36:30 +0900 Subject: [PATCH] https://github.com/syuilo/misskey/pull/7129#discussion_r599526233 --- src/client/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/account.ts b/src/client/account.ts index 4d49742da4..a209761ab7 100644 --- a/src/client/account.ts +++ b/src/client/account.ts @@ -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 }])); } }