This commit is contained in:
Bruno Rybársky 2024-02-06 20:53:57 +01:00
parent 30ead7c469
commit 6fe20be187

@ -5,8 +5,7 @@ const navLinks = document.getElementById("navsite_list")
toggleButton.addEventListener('click', () => {
navLinks.classList.toggle("active")
})
async
function handleResponse(data, successMessage, failureMessage) {
async function handleResponse(data, successMessage, failureMessage) {
const statusMessageContainer = document.getElementById("statusMessageContainer");
const statusMessage = document.createElement("div");
@ -344,7 +343,7 @@ 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;
UserInfo.forEach(function callback(value, index) {
result.UserInfo.forEach(function callback(value, index) {
localStorage.setItem("UserInfo_" + index, value);
});
}