Skip to content

Commit

Permalink
Fix can't resubmit short answer during quiz retake
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Dec 13, 2024
1 parent b5ddb18 commit 50f44a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class ItemShortAnswerForm extends PureComponent {
if (this.state.answerState === AnswerState.NotAnswered || this.state.answerState === AnswerState.AnswerSaved) {
this.setState({ answerState: AnswerState.Answering });
} else {
const oldValue = this.props.initialAnswer || '';
const oldValue = this.state.initialAnswer || '';
const newValue = formValue;
if (this.props.onSubmit && oldValue !== newValue) {
this.setState({ answerState: AnswerState.SavingAnswer });
Expand Down

0 comments on commit 50f44a1

Please sign in to comment.