Skip to content

Commit

Permalink
Fix javascript comparison again
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed Mar 3, 2022
1 parent ddab3c7 commit 374edfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supabase_stream_scripts/src/functions/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const getCurrentScene = (gameData: IGameData, uiData: IUiData): ISceneNam
return "replay"
}
return "game"
} else if (uiData.activeScreens === ["ScreenLoading/ScreenLoading"]) {
} else if (uiData.activeScreens.length === 1 && uiData.activeScreens[0] === "ScreenLoading/ScreenLoading") {
return "loading"
} else if (uiData.activeScreens.length !== 0) {
return "menu"
Expand Down

0 comments on commit 374edfd

Please sign in to comment.