X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=2b7f65731f08e84bb8e1fb9454ea883e5c031ac0;hb=afd3240d89a2f6191fe9426960dc0c1667b40c77;hp=c7f661ca666407f71cdb36062750d442a6a5def5;hpb=85e5b5c1e6192a134fa69182e8c077605fdb969f;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index c7f661ca..2b7f6573 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -1,15 +1,16 @@ @@ -18,11 +19,8 @@ export default { name: "my-game-list", props: ["games"], computed: { - showVariant: function() { - return this.games.length > 0 && !!this.games[0].vname; - }, showResult: function() { - return this.games.length > 0 && this.games[0].score != "*"; + return this.games.some(g => g.score != "*"); }, }, };