There was an error while loading. Please reload this page.
1 parent 98b64d0 commit 0891df5Copy full SHA for 0891df5
1 file changed
kaggle_environments/envs/open_spiel_env/games/go/visualizer/v2/src/components/Annotation.tsx
@@ -209,13 +209,12 @@ export default function Annotation() {
209
210
const notation = matches.toSorted((a, b) => a.priority - b.priority)[0];
211
212
- const gameOver = options.replay.steps.at(options.step)?.winner;
213
// React 18 doesn't support the `inert` HTML attribute as a prop, so we
214
// set it imperatively via a ref callback. This can be replaced with a
215
// regular `inert` prop once the project upgrades to React 19+.
216
const inertRef = (el: HTMLElement | null) => {
217
if (!el) return;
218
- if (gameOver) el.setAttribute('inert', '');
+ if (game.gameOver) el.setAttribute('inert', '');
219
else el.removeAttribute('inert');
220
};
221
0 commit comments