X-Git-Url: https://git.auder.net/assets/discord.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=bf9c8ffc3125169b31436479c6139795703cef71;hb=af32cf62c4e117a49a76aef24146555a724dd463;hp=c7f661ca666407f71cdb36062750d442a6a5def5;hpb=85e5b5c1e6192a134fa69182e8c077605fdb969f;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index c7f661ca..bf9c8ffc 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -1,15 +1,17 @@ @@ -18,11 +20,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 != "*"); }, }, };