This commit is contained in:
Bruno Rybársky 2024-02-06 20:57:25 +01:00
parent 34fbecdbad
commit 77e8cfe3ea

@ -1,4 +1,4 @@
let UserInfo;
let UserInfo = {};
const toggleButton = document.getElementById("toggle_button")
const navLinks = document.getElementById("navsite_list")
@ -342,9 +342,9 @@ async function getUserInfo() {
doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true) .then((result) => {
if (result && result.Status === "Success") {
UserInfo = result.UserInfo;
result.UserInfo.forEach(function callback(value, index) {
localStorage.setItem("UserInfo_" + index, value);
UserInfo[index] = value;
});
}
});