Skip to content

Commit

Permalink
WizardStep - handle no state (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-i-k-e-l committed Feb 26, 2020
1 parent f7c3116 commit 714d4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/wizard/WizardStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class WizardStep extends PureBaseComponent {
getAccessibilityLabel() {
const {index, label, state} = this.props;
const config = StatesConfig[state];
const extraInfo = config.accessibilityInfo || '';
const extraInfo = config && config.accessibilityInfo || '';
return `Step ${index + 1}, ${label}, ${extraInfo}`;
}

Expand Down

0 comments on commit 714d4e2

Please sign in to comment.