From da369edb5b5a24de8639a3228307a8344dfff37c Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Thu, 5 Dec 2019 21:24:13 +0100 Subject: [PATCH] fix: display error message if the summoner has no champions stats --- .../Summoner/Overview/SummonerChampions.vue | 96 ++++++++++--------- 1 file changed, 51 insertions(+), 45 deletions(-) diff --git a/client/src/components/Summoner/Overview/SummonerChampions.vue b/client/src/components/Summoner/Overview/SummonerChampions.vue index d6bf734..ad5ca6a 100644 --- a/client/src/components/Summoner/Overview/SummonerChampions.vue +++ b/client/src/components/Summoner/Overview/SummonerChampions.vue @@ -30,52 +30,58 @@ -
-
Champion
-
plays
-
winrate
-
kda
+
+
+
Champion
+
plays
+
winrate
+
kda
+
+
    +
  • +
    {{ index + 1 }}.
    +
    +
    +
    {{ champion.champion.name }}
    +
    +
    +
    {{ champion.count }}
    +
    +
    +
    +
    {{ champion.wins * 100 / champion.count|percent }}
    +
    +
    +
    +
    {{ kda(champion.kills, champion.deaths, champion.assists) }}
    +
    +
    +
  • +
+
+
+
No champions have been found.
+
😕
-