Skip to content

Commit bedfab7

Browse files
committed
TS tweak
1 parent 3666c1d commit bedfab7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/analyse/src/clocks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export default function renderClocks(ctrl: AnalyseCtrl): [VNode, VNode] | undefi
1212
const whitePov = ctrl.bottomIsWhite(),
1313
parentClock = ctrl.tree.getParentClock(node, ctrl.path),
1414
isWhiteTurn = node.ply % 2 === 0,
15-
centis: Array<number | undefined> = [parentClock, clock];
16-
17-
if (!isWhiteTurn) centis.reverse();
15+
centis: Array<number | undefined> = isWhiteTurn ? [parentClock, clock] : [clock, parentClock];
1816

1917
const study = ctrl.study,
2018
relay = study && study.data.chapter.relay;

0 commit comments

Comments
 (0)