refactor: navigation and other stuff

This commit is contained in:
Jon Eugster
2024-05-16 02:31:41 +02:00
parent 08875e4415
commit d82ef8af8f
35 changed files with 1049 additions and 587 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ export function selectOpenedIntro(game: string) {
/** return typewriter mode for the current game if it exists */
export function selectTypewriterMode(game: string) {
return (state) => {
return state.progress.games[game.toLowerCase()]?.typewriterMode ?? true
return state.progress.games[game?.toLowerCase()]?.typewriterMode ?? true
}
}