diff options
Diffstat (limited to 'src/state/session')
-rw-r--r-- | src/state/session/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index 3aac19025..09fcf8664 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -185,8 +185,8 @@ export function Provider({children}: React.PropsWithChildren<{}>) { }, [state]) React.useEffect(() => { - return persisted.onUpdate(() => { - const synced = persisted.get('session') + return persisted.onUpdate('session', nextSession => { + const synced = nextSession addSessionDebugLog({type: 'persisted:receive', data: synced}) dispatch({ type: 'synced-accounts', |