fix: rank border color if the summoner is unranked

This commit is contained in:
Valentin Kaelin 2019-11-24 14:53:12 +01:00
parent d5394c64f8
commit d016887eeb

View file

@ -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()]