Skip to content

Commit

Permalink
isCorrect fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Oct 27, 2017
1 parent a45594b commit ddcd3a5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/Submissions/EvaluationDetail/EvaluationDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ const EvaluationDetail = ({
<td
className={classnames({
'text-center': true,
'text-danger':
!evaluation.isCorrect && evaluation.bonusPoints === 0,
'text-success':
evaluation.isCorrect && evaluation.bonusPoints === 0,
'text-danger': !isCorrect && evaluation.bonusPoints === 0,
'text-success': isCorrect && evaluation.bonusPoints === 0,
'text-bold': evaluation.bonusPoints === 0
})}
>
Expand Down Expand Up @@ -151,11 +149,9 @@ const EvaluationDetail = ({
className={classnames({
'text-center': true,
'text-danger':
!evaluation.isCorrect ||
evaluation.points + evaluation.bonusPoints <= 0,
!isCorrect || evaluation.points + evaluation.bonusPoints <= 0,
'text-success':
evaluation.isCorrect &&
evaluation.points + evaluation.bonusPoints > 0
isCorrect && evaluation.points + evaluation.bonusPoints > 0
})}
>
<b>
Expand Down

0 comments on commit ddcd3a5

Please sign in to comment.