fix replacement of the nullish operator

pull/9314/head
kraktus 2021-06-29 23:45:35 +02:00
parent 73d64498e6
commit 21a5b960a4
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ lichess.movetimeChart = function (data, trans, hunter) {
const x = event.point.x;
const p =
this.highcharts.series[
(showTotal ? 4 : 0) + (((tree[x] ? tree[x].ply : undefined) ? x : undefined) % 2)
(showTotal ? 4 : 0) + (((tree[x] ? tree[x].ply : undefined) || x) % 2)
].data[x >> 1];
}
},