Swap order
parent
b0c9cce5c3
commit
60386f8f07
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue