Skip to content

Commit

Permalink
Take absolute value for score display
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Aug 25, 2023
1 parent c993685 commit cab2c28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/viewer/ViewScore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<span v-if="score.beforeText" class="score-before">{{
score.beforeText
}}</span>
<span class="score-value">{{ score.value }}</span>
<span class="score-value">{{
Math.abs(Number.parseInt(score.value))
}}</span>
<span v-if="score.afterText" class="score-after">{{
score.afterText
}}</span>
Expand Down

0 comments on commit cab2c28

Please sign in to comment.