Skip to content

Commit 9a0d42a

Browse files
author
rmmayo
committed
#3199 - do not cache invalid answers
1 parent 83f28ef commit 9a0d42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/common-components/utilities/UseCheckIfAnswerChangedForValidation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const useCheckIfAnswerChangedForValidation = () => {
3434
const quizAnswers = testContext?.parent.quizAnswers
3535
if (quizAnswers && quizAnswers.length === 1 && quizAnswers[0].id) {
3636
const answerId = quizAnswers[0].id
37-
cache.delete(context)
37+
cache.delete(answerId)
3838
}
3939
}
4040
return {

0 commit comments

Comments
 (0)