Skip to content

Commit

Permalink
Potential fix for random js error seed.state undefined at 'get isFini…
Browse files Browse the repository at this point in the history
…shed' on startup
  • Loading branch information
tzhf committed Apr 9, 2024
1 parent fda44f0 commit e713d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/Game.ts
Expand Up @@ -341,7 +341,7 @@ export default class Game {
}

get isFinished() {
return this.seed!.state === 'finished'
return this.seed && this.seed.state === 'finished'
}

get mapName() {
Expand Down

0 comments on commit e713d61

Please sign in to comment.