From e8a1334e07776e17603217f5db37571a4b294994 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 12 Oct 2022 18:08:28 +0200 Subject: Fixed error following refactoring --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index da1167b..c937904 100644 --- a/index.js +++ b/index.js @@ -145,7 +145,7 @@ let CW = function(){ let elt = document.getElementById(["s", y, "_", x].join("")); if (letter !== "") { elt.className = "letter"; - elt.innerHTML = [letter, "
", points[letter], "
"].join(""); + elt.innerHTML = [letter, "
", letters[letter].points, "
"].join(""); // we also remove the letter from the pool letters[letter].count--; total_remaining_letters--; @@ -159,7 +159,7 @@ let CW = function(){ let elt = document.getElementById(["l", x].join("")); if (letter !== undefined) { elt.className = "letter"; - elt.innerHTML = [letter, "
", points[letter], "
"].join(""); + elt.innerHTML = [letter, "
", letters[letter].points, "
"].join(""); // we remove the letter from the pool letters[letter].count--; total_remaining_letters--; -- cgit v1.2.3