Skip to content

Commit

Permalink
fix js lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Apr 17, 2023
1 parent 14d25b5 commit c04e2f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/OnboardingSPA/components/StateHandlers/Flow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down
6 changes: 3 additions & 3 deletions src/OnboardingSPA/pages/Steps/TopPriority/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<CommonLayout isVerticallyCentered>
Expand All @@ -146,7 +146,7 @@ const StepTopPriority = () => {
'wp-module-onboarding'
) }
</p>
<SkipButton callback = { handleSkip }/>
<SkipButton callback={ handleSkip } />
</div>
</CommonLayout>
);
Expand Down

0 comments on commit c04e2f2

Please sign in to comment.