Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ducvugithub committed Jan 22, 2024
1 parent 99924be commit 0418c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/components/Tests/ReadingTest/ReadingTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
nextReadingTestQuestion,
markAnsweredChoice
} from 'Utilities/redux/testReducer'
import { learningLanguageSelector } from 'Utilities/common'
import { learningLanguageSelector, confettiRain } from 'Utilities/common'
import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'
import ReadingTestMC from './ReadingTestMC'
import ReadingTestFeedbacks from './ReadingTestFeedbacks'
Expand Down Expand Up @@ -88,6 +88,7 @@ const ReadingTest = () => {
if (choice.is_correct){
if (countNotSelectedChoices >= currentReadingTestQuestion.choices.length - 1){
dispatch(updateTestFeedbacks(choice.option, ["Correct!"]))
confettiRain()
} else {
dispatch(updateTestFeedbacks(choice.option, synthesis_feedback))
}
Expand Down

0 comments on commit 0418c31

Please sign in to comment.