From 3dfde15133fb9f623d1500bf710ecff834bc98b7 Mon Sep 17 00:00:00 2001 From: fragosti Date: Wed, 27 Jun 2018 18:56:14 -0700 Subject: Always restart onboarding from 0 and other small improvements --- .../website/ts/components/onboarding/portal_onboarding_flow.tsx | 6 +++--- packages/website/ts/redux/reducer.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 2102f39f9..0b7599aaf 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -120,7 +120,7 @@ class PlainPortalOnboardingFlow extends React.Component, placement: 'right', - continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, + continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : 'disabled', }, { target: '.wallet', @@ -133,7 +133,7 @@ class PlainPortalOnboardingFlow extends React.Component ), placement: 'right', - continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, + continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : 'disabled', }, { target: '.wallet', @@ -149,7 +149,7 @@ class PlainPortalOnboardingFlow extends React.Component, placement: 'right', continueButtonDisplay: 'enabled', diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts index ed6a4868e..de95296b0 100644 --- a/packages/website/ts/redux/reducer.ts +++ b/packages/website/ts/redux/reducer.ts @@ -312,6 +312,8 @@ export function reducer(state: State = INITIAL_STATE, action: Action): State { ...state, isPortalOnboardingShowing, hasPortalOnboardingBeenSeen: true, + // always start onboarding from the beginning + portalOnboardingStep: 0, }; } -- cgit v1.2.3