about summary refs log tree commit diff
path: root/src/state/session/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/session/index.tsx')
-rw-r--r--src/state/session/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx
index 85ae3b520..dd17284fc 100644
--- a/src/state/session/index.tsx
+++ b/src/state/session/index.tsx
@@ -376,11 +376,11 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
 
   React.useEffect(() => {
     if (isDirty.current) {
+      isDirty.current = false
       persisted.write('session', {
         accounts: state.accounts,
         currentAccount: state.currentAccount,
       })
-      isDirty.current = false
     }
   }, [state])