File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/pods/contests/contest/content/quiz Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ export default class Quiz extends Controller {
1616 get totalCorrect ( ) {
1717 const result = this . get ( 'submitQuizTask.lastSuccessful.value.judge_result' )
1818 return result . questions . reduce ( ( acc , question ) => {
19- return acc + question . questionAnsweredCorrectly ? 1 : 0
19+ return acc + ( question . questionAnsweredCorrectly ? 1 : 0 )
2020 } , 0 )
2121 }
2222
2323 @computed ( 'submitQuizTask.lastSuccessful.value.judge_result' )
2424 get totalIncorrect ( ) {
2525 const result = this . get ( 'submitQuizTask.lastSuccessful.value.judge_result' )
2626 return result . questions . reduce ( ( acc , question ) => {
27- return acc + question . questionAnsweredCorrectly ? 0 : 1
27+ return acc + ( question . questionAnsweredCorrectly ? 0 : 1 )
2828 } , 0 )
2929 }
3030
You can’t perform that action at this time.
0 commit comments