Fix infinite loading

This commit is contained in:
Liam 2022-10-19 18:00:06 +01:00
parent 7ecc418471
commit 994747cf7f

@ -63,14 +63,13 @@ export default class Home extends Component {
const json = JSON.parse(localStorage.getItem("values"));
let values = {};
Object.entries(json.values).forEach((value) => {
if (value[0] === undefined) {
return;
if (value[0] !== undefined) {
values[value[0]] = value[1];
}
values[value[0]] = value[1];
});
this.setState({ steamId: json.steamId, values: values });
this.validateSteamId(json.steamId);
this.validateSteamId(json.steamId || "");
}
this.setState({ loading: false });
}