From 250ca41e98f9b80bc816d97d29d4e8322482ecfa Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Mon, 17 Oct 2022 14:50:08 +0100 Subject: [PATCH] Add check for showScore --- pages/overlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/overlay.js b/pages/overlay.js index bea09c2..69265f0 100644 --- a/pages/overlay.js +++ b/pages/overlay.js @@ -328,7 +328,9 @@ export default class Overlay extends Component { console.log("Going into level, resetting data."); this.resetData(true); this.setState({ songData: data, paused: false }); - this.setBeatSaver(data.status.beatmap); + if (this.state.showScore) { + this.setBeatSaver(data.status.beatmap); + } }, finished: () => { this.resetData(false);