Skip to content

Commit

Permalink
reverse update
Browse files Browse the repository at this point in the history
  • Loading branch information
ducvugithub committed Jan 23, 2024
1 parent a79ddc5 commit dcb89f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/components/Tests/ReadingTest/ReadingTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ const ReadingTest = () => {
if (countNotSelectedChoices > 2){
const remainItemFeedbacks = itemFeedbacks.filter(feedback => !feedbacks.includes(feedback));
const remainMediationFeedbacks = mediationFeedbacks.filter(feedback => !feedbacks.includes(feedback));
if (remainItemFeedbacks.length > 0){
dispatch(updateTestFeedbacks(choice.option, remainItemFeedbacks[0]))
if (remainMediationFeedbacks.length > 0){
dispatch(updateTestFeedbacks(choice.option, remainMediationFeedbacks[0]))
} else {
if (remainMediationFeedbacks.length > 0) {
dispatch(updateTestFeedbacks(choice.option, remainMediationFeedbacks[0]))
if (remainItemFeedbacks.length > 0) {
dispatch(updateTestFeedbacks(choice.option, remainItemFeedbacks[0]))
} else if (!feedbacks.includes(synthesis_feedback)) {
dispatch(updateTestFeedbacks(choice.option, synthesis_feedback))
setShowCorrect(true)
Expand Down

0 comments on commit dcb89f7

Please sign in to comment.