Skip to content

Commit 1d5747d

Browse files
committed
fix: write state on account refresh
Signed-off-by: Adam Setch <[email protected]>
1 parent ec81a6d commit 1d5747d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/renderer/context/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
216216
settings.fetchType === FetchType.INACTIVITY ? settings.fetchInterval : null,
217217
);
218218

219-
// biome-ignore lint/correctness/useExhaustiveDependencies: Refresh account details on startup
219+
/**
220+
* On startup, check if auth tokens need encrypting and refresh all account details
221+
*/
222+
// biome-ignore lint/correctness/useExhaustiveDependencies: Run once on startup
220223
useEffect(() => {
221224
void (async () => {
222225
await migrateAuthTokens();

0 commit comments

Comments
 (0)