From d016887eeb5e1fe96d20e08e434181d88a27e1f3 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sun, 24 Nov 2019 14:53:12 +0100 Subject: [PATCH] fix: rank border color if the summoner is unranked --- client/src/components/Summoner/SummonerRanked.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/components/Summoner/SummonerRanked.vue b/client/src/components/Summoner/SummonerRanked.vue index d5551a3..a366005 100644 --- a/client/src/components/Summoner/SummonerRanked.vue +++ b/client/src/components/Summoner/SummonerRanked.vue @@ -86,10 +86,7 @@ export default { computed: { colorBorder() { - if (!this.selectedLeague.tier) { - return 'transparent' - } - if (this.selectedLeague.leaguePoints === 0) { + if (!this.selectedLeague.tier || this.selectedLeague.leaguePoints === 0) { return '#2c5282' } return this.rankColors[this.selectedLeague.tier.toLowerCase()]