From c04e2f24c352fb1ff1a292b4c9d5c7f8146e8325 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Mon, 17 Apr 2023 22:12:39 +0530 Subject: [PATCH] fix js lint --- src/OnboardingSPA/components/StateHandlers/Flow/index.js | 5 ++++- src/OnboardingSPA/pages/Steps/TopPriority/index.js | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/OnboardingSPA/components/StateHandlers/Flow/index.js b/src/OnboardingSPA/components/StateHandlers/Flow/index.js index 71c187119..d562e3845 100644 --- a/src/OnboardingSPA/components/StateHandlers/Flow/index.js +++ b/src/OnboardingSPA/components/StateHandlers/Flow/index.js @@ -46,7 +46,10 @@ const FlowStateHandler = ( { children } ) => { } const firstEcommerceStep = getFirstEcommerceStep(); const fragment = getFragment( window.location.href ); - const redirect = removeQueryParam( window.location.href, 'flow' ).replace( fragment, '' ); + const redirect = removeQueryParam( + window.location.href, + 'flow' + ).replace( fragment, '' ); window.location.replace( `${ redirect }#${ firstEcommerceStep.path }` ); window.location.reload(); }; diff --git a/src/OnboardingSPA/pages/Steps/TopPriority/index.js b/src/OnboardingSPA/pages/Steps/TopPriority/index.js index f4f5155b0..f19fc265b 100644 --- a/src/OnboardingSPA/pages/Steps/TopPriority/index.js +++ b/src/OnboardingSPA/pages/Steps/TopPriority/index.js @@ -119,9 +119,9 @@ const StepTopPriority = () => { const handleSkip = () => { window.nfdOnboarding.newFlow = undefined; - currentData.data.topPriority.priority1 = priorityTypes[0] ; + currentData.data.topPriority.priority1 = priorityTypes[ 0 ]; setCurrentOnboardingData( currentData ); - } + }; return ( @@ -146,7 +146,7 @@ const StepTopPriority = () => { 'wp-module-onboarding' ) }

- +
);