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; });