Swap order
This commit is contained in:
@@ -376,11 +376,11 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (isDirty.current) {
|
if (isDirty.current) {
|
||||||
|
isDirty.current = false
|
||||||
persisted.write('session', {
|
persisted.write('session', {
|
||||||
accounts: state.accounts,
|
accounts: state.accounts,
|
||||||
currentAccount: state.currentAccount,
|
currentAccount: state.currentAccount,
|
||||||
})
|
})
|
||||||
isDirty.current = false
|
|
||||||
}
|
}
|
||||||
}, [state])
|
}, [state])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user