From 6b813e085285715e1ab444d837efedb8a16019cb Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 24 Jun 2022 10:02:51 +0200 Subject: [PATCH] lowercase letter to always retrieve data from it --- public/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index 83d5db4..e7d391a 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -55,7 +55,7 @@ const setString = (firstname = String, data = Object) => { // Fill elements with data letter.textContent = letter_value; - infos.textContent = JSON.stringify(data[letter_value]); + infos.textContent = JSON.stringify(data[letter_value.toLowerCase()]); // Change parameter of tag infos.style.visibility = "hidden";