From b1ae81a6a82f017f65a3d802257ce564dd75ee03 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 25 Sep 2024 21:17:27 +0200 Subject: [PATCH] don't show ongoing game result --- src/view/side.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/view/side.ts b/src/view/side.ts index 4cad427..8713d0c 100644 --- a/src/view/side.ts +++ b/src/view/side.ts @@ -38,8 +38,10 @@ export const renderMoves = (ctrl: PgnViewer) => ), ]); -const renderResultComment = (ctrl: PgnViewer) => - ctrl.game.metadata.result ? [ h('comment.result',ctrl.game.metadata.result)] : []; +const renderResultComment = (ctrl: PgnViewer) => { + const res = ctrl.game.metadata.result; + return res && res != '*' ? [ h('comment.result',ctrl.game.metadata.result)] : []; +}; const emptyMove = () => h('move.empty', '...'); const indexNode = (turn: number) => h('index', `${turn}.`);