nicolium: make loading account from kvstore improve app loading time

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-18 22:36:39 +01:00
parent 70cf8d023c
commit 804dc5aa7f

View File

@ -710,6 +710,8 @@ const useAuthStore = create<AuthStore>()(
queryClient.setQueryData(queryKeys.accounts.show(account.id), account);
get().actions.setCurrentAccountIfUnset(account);
if (account.id === get().currentAccountId) fetchMeSuccess(account);
get().actions.verifyCredentials(token, accountUrl!);
return;
} catch {}
return await get().actions.verifyCredentials(token, accountUrl!);