aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-04 02:48:34 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-04 02:48:34 +0800
commit32c25a20341964498c3594758aa02908c98dbfc0 (patch)
tree7032ca7586fe413f4b05322eae36dd51e969e70f /packages
parentc30b42434a8999356d7537e50c88ea96481e8c60 (diff)
downloaddexon-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')
-rw-r--r--packages/website/ts/redux/store.ts4
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),
);