Small fix
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 26 Jan 2020 23:18:04 +0000 (00:18 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 26 Jan 2020 23:18:04 +0000 (00:18 +0100)
client/src/components/BaseGame.vue
client/src/translations/en.js

index a2d78a0..6d9904e 100644 (file)
@@ -62,8 +62,9 @@ export default {
     "game.moveToPlay": function() {
       this.play(this.game.moveToPlay, "receive", this.game.vname=="Dark");
     },
-    "game.score": function() {
-      this.endGame(this.game.score, this.game.scoreMsg);
+    "game.score": function(score) {
+      if (score != "*")
+        this.endGame(score, this.game.scoreMsg);
     },
   },
   computed: {
index cbc3a63..23bb487 100644 (file)
@@ -47,6 +47,7 @@ export const translations =
   "White win": "White win",
   "Black win": "Black win",
   "Draw": "Draw",
+  "Unfinished": "Unknown",
   "New live game": "New live game",
   "New game versus computer": "New game versus computer",
   "Analysis mode": "Analysis mode",