Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Commit 06efff0

Browse files
committed
Remove startingSteps from props validation
1 parent 3f8cb99 commit 06efff0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

composites/OnboardingWizard/OnboardingWizard.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class OnboardingWizard extends React.Component {
151151
if ( firstStep !== "" ) {
152152
return firstStep;
153153
}
154-
// When no startingStep is set, use the first step of the wizard as default.
154+
// When window.location doesn't have a hash, use the first step of the wizard as default.
155155
return Object.getOwnPropertyNames( steps )[ 0 ];
156156
}
157157

@@ -433,13 +433,11 @@ OnboardingWizard.propTypes = {
433433
finishUrl: PropTypes.string,
434434
translate: PropTypes.any,
435435
headerIcon: PropTypes.func,
436-
startingStep: PropTypes.string,
437436
};
438437

439438
OnboardingWizard.defaultProps = {
440439
customComponents: {},
441440
finishUrl: "",
442-
startingStep: "",
443441
};
444442

445443
export default localize( OnboardingWizard );

0 commit comments

Comments
 (0)