Change when data is fetched

This commit is contained in:
Liam 2022-10-21 17:37:31 +01:00
parent 87af768a10
commit 3b6c8a11d4

@ -331,8 +331,10 @@ export default class Overlay extends Component {
console.log("Going into level during song, resetting data.");
this.resetData(true, true);
this.setState({ songData: data, paused: false });
if (this.state.showScore || this.state.showSongInfo) {
this.setBeatSaver(data.status.beatmap);
}
}
},
scoreChanged: (data) => {
const { status } = data;
@ -375,7 +377,7 @@ export default class Overlay extends Component {
console.log("Going into level, resetting data.");
this.resetData(true);
this.setState({ songData: data, paused: false });
if (this.state.showScore) {
if (this.state.showScore || this.state.showSongInfo) {
this.setBeatSaver(data.status.beatmap);
}
},