- commit
- a86d8c5127d8d3124529b07ca184f4e1b413dee3
- parent
- 9c85a5a50a6c826ee51d0fabb621345a7ad2505c
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-20 12:39
fix race condition
Diffstat
| M | src/index.js | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
@@ -33,7 +33,7 @@ const clone = function(obj) {
33 33 };
34 34
35 35 const play = function() {
36 -1 if (!state.game.playing && !state.game.steps) {
-1 36 if (!state.game || !state.game.playing && !state.game.steps)) {
37 37 return;
38 38 }
39 39 if (!state.game.playing) {