From 52a8ab55fed35fcbf8d00d4952fb32dd3535f5b7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Mon, 27 Jan 2020 00:18:04 +0100 Subject: [PATCH] Small fix --- client/src/components/BaseGame.vue | 5 +++-- client/src/translations/en.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index a2d78a06..6d9904e6 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -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: { diff --git a/client/src/translations/en.js b/client/src/translations/en.js index cbc3a63f..23bb487e 100644 --- a/client/src/translations/en.js +++ b/client/src/translations/en.js @@ -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", -- 2.44.0