Add check for showScore

This commit is contained in:
Liam 2022-10-17 14:50:08 +01:00
parent fcf0bb08d6
commit 250ca41e98

@ -328,7 +328,9 @@ export default class Overlay extends Component {
console.log("Going into level, resetting data."); console.log("Going into level, resetting data.");
this.resetData(true); this.resetData(true);
this.setState({ songData: data, paused: false }); this.setState({ songData: data, paused: false });
if (this.state.showScore) {
this.setBeatSaver(data.status.beatmap); this.setBeatSaver(data.status.beatmap);
}
}, },
finished: () => { finished: () => {
this.resetData(false); this.resetData(false);