Skip to content

Commit

Permalink
Revert dev temp changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Oct 7, 2024
1 parent 8a4ba4c commit 8b850fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/src/hooks/useAutoCreateAdsMCAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const useAutoCreateAdsMCAccounts = () => {
}, [ createMCAccount, createAdsAccount ] );

const accountCreationChecksResolved =
// initHasExistingAdsAccountsRef.current !== null &&
initHasExistingAdsAccountsRef.current !== null &&
initHasExistingMCAccountsRef.current !== null;

const shouldCreateAdsAccount =
Expand Down
10 changes: 5 additions & 5 deletions js/src/setup-mc/setup-stepper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ const SetupStepper = () => {

const { status, step } = mcSetup;

// if ( status === 'complete' ) {
// getHistory().replace( getNewPath( {}, '/google/dashboard' ) );
// return null;
// }
if ( status === 'complete' ) {
getHistory().replace( getNewPath( {}, '/google/dashboard' ) );
return null;
}

return <SavedSetupStepper savedStep={ stepNameKeyMap.accounts } />;
return <SavedSetupStepper savedStep={ stepNameKeyMap[ step ] } />;
};

export default SetupStepper;

0 comments on commit 8b850fd

Please sign in to comment.