diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-04 22:35:49 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-04 22:35:49 +0800 |
commit | 8adc6f0faadb46f88c1f9738b04039d037cfbcb9 (patch) | |
tree | 6ea9d1f9c9506bee42dbbe0543a8c407c6c5d05e /packages/website/ts/redux/store.ts | |
parent | 4e783fba57bbd3d389ab52679ca8763bfa03cbf3 (diff) | |
parent | ade620f4f7d9ac1e5726681aefcbddf742915a84 (diff) | |
download | dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.gz dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.bz2 dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.lz dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.xz dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.zst dexon-0x-contracts-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.zip |
merge v2-prototype
Diffstat (limited to 'packages/website/ts/redux/store.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), ); |