diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-30 08:40:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-30 08:40:43 +0800 |
commit | 42b7b0dab907f1ce2caf6a2ea415a247ba31245f (patch) | |
tree | f59b3d961a338442816e25e24c0c49ead6eab45a /packages/website/ts/redux/reducer.ts | |
parent | 78b513c52addc16062419236c24f01bcfe191f3f (diff) | |
parent | 8ffce78827bc64f222128dfdd0dc4a45db402f3a (diff) | |
download | dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar.gz dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar.bz2 dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar.lz dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar.xz dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.tar.zst dexon-sol-tools-42b7b0dab907f1ce2caf6a2ea415a247ba31245f.zip |
Merge pull request #787 from 0xProject/feature/website/portal-onboarding-polish
Portal v2 onboarding polish
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r-- | packages/website/ts/redux/reducer.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts index ed6a4868e..caddabcf0 100644 --- a/packages/website/ts/redux/reducer.ts +++ b/packages/website/ts/redux/reducer.ts @@ -42,7 +42,7 @@ export interface State { userEtherBalanceInWei?: BigNumber; portalOnboardingStep: number; isPortalOnboardingShowing: boolean; - hasPortalOnboardingBeenSeen: boolean; + hasPortalOnboardingBeenClosed: boolean; // Note: cache of supplied orderJSON in fill order step. Do not use for anything else. userSuppliedOrderCache: Order; @@ -85,7 +85,7 @@ export const INITIAL_STATE: State = { userSuppliedOrderCache: undefined, portalOnboardingStep: 0, isPortalOnboardingShowing: false, - hasPortalOnboardingBeenSeen: false, + hasPortalOnboardingBeenClosed: false, // Docs docsVersion: DEFAULT_DOCS_VERSION, availableDocVersions: [DEFAULT_DOCS_VERSION], @@ -311,7 +311,9 @@ export function reducer(state: State = INITIAL_STATE, action: Action): State { return { ...state, isPortalOnboardingShowing, - hasPortalOnboardingBeenSeen: true, + hasPortalOnboardingBeenClosed: !isPortalOnboardingShowing ? true : state.hasPortalOnboardingBeenClosed, + // always start onboarding from the beginning + portalOnboardingStep: 0, }; } |