From d9fbd61cddfcdc96f6198e93eba194bb8566f3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 6 Feb 2024 20:59:03 +0100 Subject: [PATCH] Fix js --- assets/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/script.js b/assets/script.js index 8173a66..a162963 100644 --- a/assets/script.js +++ b/assets/script.js @@ -25,8 +25,7 @@ async function handleResponse(data, successMessage, failureMessage) { } async function showDashboardGreeting() { - let FirstName = localStorage.getItem("FirstName"); - document.getElementById("welcomeMsg").innerText = `Ahoj, ${FirstName}.`; + document.getElementById("welcomeMsg").innerText = `Ahoj, ${UserInfo.FirstName}.`; } async function doAction(url, requestData, successMessage, failureMessage, silent = false) {