diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-04-16 09:25:13 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-04-16 09:25:13 +0900 |
| commit | 75267f87d5248c4fc573e7dabdb9d3fae364a0ca (patch) | |
| tree | 08f4e347f28471f347bb77652a6aaea53a3bbc10 /packages/frontend/src/components/MkAuthConfirm.vue | |
| parent | refactor(frontend): MkHorizontalSwipe -> MkSwiper (diff) | |
| download | sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.tar.gz sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.tar.bz2 sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.zip | |
refactor(frontend): アカウント情報はstore管理に
Diffstat (limited to 'packages/frontend/src/components/MkAuthConfirm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkAuthConfirm.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkAuthConfirm.vue b/packages/frontend/src/components/MkAuthConfirm.vue index 00bf8e68d9..b3331d742b 100644 --- a/packages/frontend/src/components/MkAuthConfirm.vue +++ b/packages/frontend/src/components/MkAuthConfirm.vue @@ -157,7 +157,7 @@ async function init() { const accounts = await getAccounts(); - const accountIdsToFetch = accounts.map(a => a.user.id).filter(id => !users.value.has(id)); + const accountIdsToFetch = accounts.map(a => a.id).filter(id => !users.value.has(id)); if (accountIdsToFetch.length > 0) { const usersRes = await misskeyApi('users/show', { @@ -169,7 +169,7 @@ async function init() { users.value.set(user.id, { ...user, - token: accounts.find(a => a.user.id === user.id)!.token, + token: accounts.find(a => a.id === user.id)!.token, }); } } |