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:
@@ -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,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user