summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
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, "<div class=\"points\">", points[letter], "</div>"].join("");
+ elt.innerHTML = [letter, "<div class=\"points\">", letters[letter].points, "</div>"].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, "<div class=\"points\">", points[letter], "</div>"].join("");
+ elt.innerHTML = [letter, "<div class=\"points\">", letters[letter].points, "</div>"].join("");
// we remove the letter from the pool
letters[letter].count--;
total_remaining_letters--;