This commit is contained in:
Bruno Rybársky 2024-02-07 18:38:36 +01:00
parent fd8e5e9ebe
commit 083fa5ac9e

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