diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-04 02:48:34 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-04 02:48:34 +0800 |
commit | 32c25a20341964498c3594758aa02908c98dbfc0 (patch) | |
tree | 7032ca7586fe413f4b05322eae36dd51e969e70f /packages/website/ts | |
parent | c30b42434a8999356d7537e50c88ea96481e8c60 (diff) | |
download | dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar.gz dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar.bz2 dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar.lz dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar.xz dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.tar.zst dexon-sol-tools-32c25a20341964498c3594758aa02908c98dbfc0.zip |
Persist whether onboarding is open or close across refreshes
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/redux/store.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/redux/store.ts b/packages/website/ts/redux/store.ts index 0d0e6cea1..2672e3f61 100644 --- a/packages/website/ts/redux/store.ts +++ b/packages/website/ts/redux/store.ts @@ -13,9 +13,11 @@ export const store: ReduxStore<State> = createStore( ); store.subscribe( _.throttle(() => { + const state = store.getState(); // Persisted state stateStorage.saveState({ - hasPortalOnboardingBeenClosed: store.getState().hasPortalOnboardingBeenClosed, + hasPortalOnboardingBeenClosed: state.hasPortalOnboardingBeenClosed, + isPortalOnboardingShowing: state.isPortalOnboardingShowing, }); }, ONE_SECOND), ); |