nicolium: oh fuck

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-25 21:41:34 +01:00
parent ddbf26d9fd
commit 6dd4978787
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const useAccount = (accountId?: string, withRelationship = false) => {
queryKey: ['accounts', accountId],
queryFn: async () => {
const account = await client.accounts.getAccount(accountId!);
queryClient.setQueryData(['accounts', 'lookup', account.acct.toLowerCase()], account);
queryClient.setQueryData(['accounts', 'lookup', account.acct.toLowerCase()], account.id);
return account;
},
enabled: !!accountId,

View File

@ -14,7 +14,7 @@ const useAccounts = (accountIds: Array<string>) => {
queryKey: ['accounts', accountId],
queryFn: async () => {
const response = await client.accounts.getAccount(accountId);
queryClient.setQueryData(['accounts', 'lookup', response.acct.toLowerCase()], response);
queryClient.setQueryData(['accounts', 'lookup', response.acct.toLowerCase()], response.id);
return response;
},
enabled: !!accountId,