fix types

This commit is contained in:
kakkokari-gtyih 2026-01-11 15:16:11 +09:00
parent cea634b45c
commit 659bde85d1
1 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ export async function getAccounts(): Promise<AccountData[]> {
host,
id: user.id,
username: user.username,
user: accountInfos[host + '/' + user.id],
token: tokens[host + '/' + user.id] ?? null,
user: accountInfos[`${host}/${user.id}`],
token: tokens[`${host}/${user.id}`] ?? null,
}));
}
@ -224,7 +224,7 @@ export async function login(token: AccountWithToken['token'], redirect?: string,
}
export async function switchAccount(host: string, id: string) {
const token = store.s.accountTokens[host + '/' + id];
const token = store.s.accountTokens[`${host}/${id}`];
if (token) {
login(token);
} else {