Browse Source

Fix game navigation issue

Fixed start game screen being replaced by end screen when exiting a runnnning game
Arnaud Vergnet 3 years ago
parent
commit
ee9e225dae
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/screens/Game/screens/GameMainScreen.js

+ 1
- 1
src/screens/Game/screens/GameMainScreen.js View File

82
   }
82
   }
83
 
83
 
84
   componentWillUnmount() {
84
   componentWillUnmount() {
85
-    this.logic.endGame(false);
85
+    this.logic.endGame(true);
86
   }
86
   }
87
 
87
 
88
   getRightButton = (): React.Node => {
88
   getRightButton = (): React.Node => {

Loading…
Cancel
Save