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) {