From 60386f8f07cde330a0f36df614b04f07b89d72ab Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Fri, 10 Nov 2023 08:48:15 -0600
Subject: Swap order

---
 src/state/session/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/state/session/index.tsx')

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])
 
-- 
cgit 1.4.1

