Fix infinite loading
This commit is contained in:
parent
7ecc418471
commit
994747cf7f
@ -63,14 +63,13 @@ export default class Home extends Component {
|
|||||||
const json = JSON.parse(localStorage.getItem("values"));
|
const json = JSON.parse(localStorage.getItem("values"));
|
||||||
let values = {};
|
let values = {};
|
||||||
Object.entries(json.values).forEach((value) => {
|
Object.entries(json.values).forEach((value) => {
|
||||||
if (value[0] === undefined) {
|
if (value[0] !== undefined) {
|
||||||
return;
|
values[value[0]] = value[1];
|
||||||
}
|
}
|
||||||
values[value[0]] = value[1];
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setState({ steamId: json.steamId, values: values });
|
this.setState({ steamId: json.steamId, values: values });
|
||||||
this.validateSteamId(json.steamId);
|
this.validateSteamId(json.steamId || "");
|
||||||
}
|
}
|
||||||
this.setState({ loading: false });
|
this.setState({ loading: false });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user