From 083fa5ac9e1a088ba2eb0f6af23f3524a982553b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Wed, 7 Feb 2024 18:38:36 +0100 Subject: [PATCH] Test JS --- assets/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 8c9bd9d..e599b39 100644 --- a/assets/script.js +++ b/assets/script.js @@ -352,7 +352,8 @@ async function getUserInfo() { const result = await doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true); if (result && result.Status === "Success") { - result.UserInfo.forEach((value, index) => { + Object.keys(result.UserInfo).forEach(index => { + let value = result.UserInfo[index]; localStorage.setItem("UserInfo_" + index, value); UserInfo[index] = value; });