aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/reducer.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-30 02:47:12 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-30 02:47:12 +0800
commitfc40efb761514b9e22e77f61d161d267b5f4c3c0 (patch)
tree72c791a334dcc8638d82eec681f99b7dc4a0b27a /packages/website/ts/redux/reducer.ts
parent36cadaae46eb17261c6dd0ee82cd8cefb3806082 (diff)
downloaddexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar.gz
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar.bz2
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar.lz
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar.xz
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.tar.zst
dexon-sol-tools-fc40efb761514b9e22e77f61d161d267b5f4c3c0.zip
Allow you to continue the onboarding flow once youve installed metamask and refreshed the page
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r--packages/website/ts/redux/reducer.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index de95296b0..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,7 @@ 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,
};