From f13b044fc88121985f9210b11166f2cdc91fbc41 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Mon, 21 Oct 2019 17:37:48 +0200 Subject: [PATCH] feat: add flex 3v3 stats + display unranked icon if summoner is unranked --- client/src/components/SummonerRanked.vue | 2 +- client/src/helpers/functions.js | 21 --------- client/src/helpers/summoner.js | 43 +++++++++++++++---- .../Controllers/Http/SummonerController.js | 3 +- 4 files changed, 38 insertions(+), 31 deletions(-) diff --git a/client/src/components/SummonerRanked.vue b/client/src/components/SummonerRanked.vue index 3215b0f..ad18b2a 100644 --- a/client/src/components/SummonerRanked.vue +++ b/client/src/components/SummonerRanked.vue @@ -24,7 +24,7 @@ -
{{ selectedLeague.rank }}
+
{{ selectedLeague.fullRank }}
Number(spell.key) === id)[0] return `https://ddragon.leagueoflegends.com/cdn/${store.getters['ddragon/version']}/img/spell/${spellName}.png` diff --git a/server/app/Controllers/Http/SummonerController.js b/server/app/Controllers/Http/SummonerController.js index 9d2b67c..e399c58 100644 --- a/server/app/Controllers/Http/SummonerController.js +++ b/server/app/Controllers/Http/SummonerController.js @@ -32,7 +32,8 @@ class SummonerController { const ranked = await Jax.League.summonerID(account.id) finalJSON.ranked = { soloQ: ranked.find(e => e.queueType === 'RANKED_SOLO_5x5') || null, - flex5v5: ranked.find(e => e.queueType === 'RANKED_FLEX_SR') || null + flex5v5: ranked.find(e => e.queueType === 'RANKED_FLEX_SR') || null, + flex3v3: ranked.find(e => e.queueType === 'RANKED_FLEX_TT') || null } // MATCH LIST