lowercase letter to always retrieve data from it

This commit is contained in:
Mylloon 2022-06-24 10:02:51 +02:00
parent 8eb4ed689e
commit 6b813e0852
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -55,7 +55,7 @@ const setString = (firstname = String, data = Object) => {
// Fill elements with data // Fill elements with data
letter.textContent = letter_value; letter.textContent = letter_value;
infos.textContent = JSON.stringify(data[letter_value]); infos.textContent = JSON.stringify(data[letter_value.toLowerCase()]);
// Change parameter of tag // Change parameter of tag
infos.style.visibility = "hidden"; infos.style.visibility = "hidden";