From: Benjamin Auder Date: Sun, 26 Jan 2020 23:18:04 +0000 (+0100) Subject: Small fix X-Git-Url: https://git.auder.net/assets/doc/current/git-favicon.png?a=commitdiff_plain;h=52a8ab55fed35fcbf8d00d4952fb32dd3535f5b7;p=vchess.git Small fix --- 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",