nicolium: make loading account from kvstore improve app loading time
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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!);
|
||||
|
||||
Reference in New Issue
Block a user