Last active
March 30, 2018 18:40
-
-
Save nth-chile/515fd38fa713d4f6882d16ae2dfb093d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getInteractiveInputComponent (prompt) { | |
const disabled = this.viewingInit() || this.viewingIntro() | |
const {userModule} = this.props | |
const {currentAttemptsIncorrect} = userModule | |
let lastErrorHighlightSteps = false | |
if (currentAttemptsIncorrect === 4) { | |
const {descriptor} = this.getQuestionProps() | |
lastErrorHighlightSteps = descriptor.lastErrorHighlightSteps | |
} | |
return <BankingKeyboard disabled={disabled} | |
lastErrorHighlightSteps={lastErrorHighlightSteps} | |
onKeyPadPress={this.onKeyPadPress}/> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment