Commit fed41bb4 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: duplicate boardContainer declaration crashing entire app

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 868682de
...@@ -150,10 +150,10 @@ export function mountGame(el, params) { ...@@ -150,10 +150,10 @@ export function mountGame(el, params) {
} }
// Emote system // Emote system
const boardContainer = el.querySelector('#board-container'); const emoteContainer = el.querySelector('#board-container');
emoteSystem.create(boardContainer, (emote) => { emoteSystem.create(emoteContainer, (emote) => {
audio.play('notification'); audio.play('notification');
emoteSystem.showReceived(boardContainer, emote.emoji); emoteSystem.showReceived(emoteContainer, emote.emoji);
}); });
bus.emit('game:started', { gameKey: 'chess', matchId, opponent: botId, mode }); bus.emit('game:started', { gameKey: 'chess', matchId, opponent: botId, mode });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment