Show +0 rating change in puzzles

pull/6074/head
mwilbz 2020-02-23 17:21:27 -08:00
parent c6aa637706
commit 36444e8bc4
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export function userBox(ctrl: Controller): MaybeVNode {
return h('div.puzzle__side__user', [
h('h2', ctrl.trans.vdom('yourPuzzleRatingX', h('strong', [
data.user.rating,
...(diff > 0 ? [' ', h('good.rp', '+' + diff)] : []),
...(diff >= 0 ? [' ', h('good.rp', '+' + diff)] : []),
...(diff < 0 ? [' ', h('bad.rp', '' + (-diff))] : [])
]))),
h('div', thunk('div.rating_chart.' + hash, ratingChart, [ctrl, hash]))