1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 15:55:56 +02:00

enhance(client): アカウント情報の取得に失敗したとき強制ログアウトではなく警告を表示するように

This commit is contained in:
syuilo
2022-03-25 01:53:20 +09:00
parent 083b913dd2
commit 863b6c48f8
2 changed files with 6 additions and 1 deletions

View File

@@ -89,7 +89,11 @@ function fetchAccount(token): Promise<Account> {
signout();
});
} else {
signout();
alert({
type: 'error',
title: i18n.ts.failedToFetchAccountInformation,
text: JSON.stringify(res.error),
});
}
} else {
res.token = token;