fix replacement of the nullish operator
parent
73d64498e6
commit
21a5b960a4
|
@ -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];
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue