diff --git a/composables/cache.ts b/composables/cache.ts index 6ea52f6b..094d05e0 100644 --- a/composables/cache.ts +++ b/composables/cache.ts @@ -23,7 +23,8 @@ export function fetchStatus(id: string, force = false): Promise { cacheStatus(status) @@ -42,7 +43,8 @@ export function fetchAccountById(id?: string | null): Promise { @@ -64,7 +66,7 @@ export async function fetchAccountByHandle(acct: string): Promise { cacheAccount(r, server, true) return r }) - cache.set(key, account) - return account + cache.set(key, promise) + return promise } export function useAccountById(id?: string | null) {