Skip to content

Commit

Permalink
fix: confirmation window is displayed after save for dropdown
Browse files Browse the repository at this point in the history
"No answer specified" confirmation window is displayed all the
time after second save for dropdown.
  • Loading branch information
Dima Alipov committed Sep 13, 2024
1 parent fd48fef commit 88a90c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const checkForNoAnswers = ({ openSaveWarningModal, problem }) => {
let correctAnswer;
answers.forEach(answer => {
if (answer.correct) {
const title = simpleTextAreaProblems.includes(problemType) ? answer.title : answerTitles[answer.id];
const title = simpleTextAreaProblems.includes(problemType) ? answer.title.toString() : answerTitles[answer.id];
if (title.length > 0) {
correctAnswer = true;
}
Expand Down

0 comments on commit 88a90c5

Please sign in to comment.