removed unused code

main
Inga 🏳‍🌈 2 weeks ago
parent 42fde81be8
commit 91dfc14bad
  1. 6
      src/frontend/components/board-game.ts

@ -43,12 +43,6 @@ class BoardGameComponent extends HTMLElement {
}); });
} }
this.querySelectorAll(".current-player-name").forEach((playerNameElement) => {
if ((playerNameElement as HTMLElement).innerText !== gameState.currentPlayerName) {
(playerNameElement as HTMLElement).innerText = gameState.currentPlayerName;
}
});
const buttonValues = getButtonValues(gameState); const buttonValues = getButtonValues(gameState);
this.querySelectorAll("button").forEach((button) => { this.querySelectorAll("button").forEach((button) => {
button.classList.forEach((className) => { button.classList.forEach((className) => {

Loading…
Cancel
Save