Remove front-end check for duplicate answer

Prep for refactoring of processAnswer Cloud Function, which currently doesn't work if vocab item has same cleansed answer twice
This commit is contained in:
2021-11-26 14:46:51 +00:00
parent 2241fae6d2
commit d5fc4305d5

View File

@@ -320,7 +320,6 @@ export default withRouter(class Progress extends React.Component {
this.startLoading(); this.startLoading();
if (!cleansedCurrentCorrect.includes(this.cleanseVocabString(this.state.answerInput))) {
this.state.functions.processAnswer({ this.state.functions.processAnswer({
answer: this.state.answerInput, answer: this.state.answerInput,
progressId: this.props.match.params.progressId, progressId: this.props.match.params.progressId,
@@ -476,15 +475,6 @@ export default withRouter(class Progress extends React.Component {
canProceed: true, canProceed: true,
}); });
}); });
} else {
this.setState({
currentAnswerStatus: null,
answerInput: "",
loading: false,
canProceed: true,
typo: false,
});
}
} }
} }