Skip to content

Commit

Permalink
Fix #1696 The result in the move list is rendered twice
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 16, 2025
1 parent 8a1b9f3 commit ad96028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/bug/movelist.bug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function updateResult (ctrl: AnalysisControllerBughouse | RoundController
if (ctrl.status < 0) return;

// Prevent to render it twice
const resultEl = document.getElementById('result') as HTMLElement;
const resultEl = document.querySelector('.result');
if (resultEl) return;

const container = document.getElementById('movelist') as HTMLElement;
Expand Down

0 comments on commit ad96028

Please sign in to comment.