From 714d4e289f7029093247c6e751867bc3a444580d Mon Sep 17 00:00:00 2001 From: Miki <38354019+M-i-k-e-l@users.noreply.github.com> Date: Wed, 26 Feb 2020 14:42:22 +0200 Subject: [PATCH] WizardStep - handle no state (#675) --- src/components/wizard/WizardStep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wizard/WizardStep.js b/src/components/wizard/WizardStep.js index 6e0705be1f..78dc8f5a72 100644 --- a/src/components/wizard/WizardStep.js +++ b/src/components/wizard/WizardStep.js @@ -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}`; }