Fix analyze button
[vchess.git] / client / src / components / BaseGame.vue
index d60a16f..e7e097f 100644 (file)
@@ -141,7 +141,7 @@ export default {
     },
     canAnalyze: function() {
       return (
-        !!this.game.mode && this.game.mode != "analyze" &&
+        (!this.game.mode || this.game.mode != "analyze") &&
         !!this.vr && this.vr.canAnalyze
       );
     },