Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Sep 29, 2023
1 parent 758ca80 commit 6761831
Showing 1 changed file with 4 additions and 1 deletion.
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 @@ -81,7 +81,10 @@ const FlowStateHandler = ( { children } ) => {
// TODO: Remove code below once Chapter Prioritization is enabled.
const firstEcommerceStep = commerce.steps[ 0 ];
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

0 comments on commit 6761831

Please sign in to comment.