fix some score issues

This commit is contained in:
Dennis Schoepf 2021-08-08 00:19:03 +02:00
parent 63896d10c8
commit f9bee84194
3 changed files with 4 additions and 3 deletions

View file

@ -31,12 +31,12 @@ const store = create<State>((set) => ({
uid: null,
showScore: false,
showOvScore: true,
currentIntroStep: 0,
currentIntroStep: 1,
revealablesFinished: 0,
currentScene: Scenes.OVERVIEW,
currentSubproject: null,
participantAnonymous: false,
companionState: CompanionState.IDLE,
companionState: CompanionState.ACTIVE,
infoMessageShown: false,
infoMessages: [],
finishedGame: false,

View file

@ -1,6 +1,7 @@
import { logger } from '../logger';
import { Scenes } from '../scenes/scenes';
import store from '../store';
import { CompanionState } from './companion';
export class Intro {
currentStep: number;

View file

@ -26,7 +26,7 @@ export class OvScore {
}
store.subscribe((state) => {
if (state.showOvScore) {
if (state.showOvScore && !state.showScore) {
this.scoreRef.style.display = 'flex';
} else {
this.scoreRef.style.display = 'none';