summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkAuthConfirm.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-08-31 19:53:38 +0900
committerGitHub <noreply@github.com>2025-08-31 19:53:38 +0900
commitc95092903a37159aa73073e31519ed363ed404b7 (patch)
treec49e0b7a03202d17a49d05020793f4652f65af6e /packages/frontend/src/components/MkAuthConfirm.vue
parent[skip ci] Update CHANGELOG.md (prepend template) (diff)
downloadmisskey-c95092903a37159aa73073e31519ed363ed404b7.tar.gz
misskey-c95092903a37159aa73073e31519ed363ed404b7.tar.bz2
misskey-c95092903a37159aa73073e31519ed363ed404b7.zip
refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16477)
* refactor(frontend): フロントエンドの型エラー解消 * fix --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/components/MkAuthConfirm.vue')
-rw-r--r--packages/frontend/src/components/MkAuthConfirm.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkAuthConfirm.vue b/packages/frontend/src/components/MkAuthConfirm.vue
index b3331d742b..8744b50926 100644
--- a/packages/frontend/src/components/MkAuthConfirm.vue
+++ b/packages/frontend/src/components/MkAuthConfirm.vue
@@ -167,9 +167,13 @@ async function init() {
for (const user of usersRes) {
if (users.value.has(user.id)) continue;
+ const account = accounts.find(a => a.id === user.id);
+
+ if (!account || account.token == null) continue;
+
users.value.set(user.id, {
...user,
- token: accounts.find(a => a.id === user.id)!.token,
+ token: account.token,
});
}
}