diff --git a/client/src/store/modules/detailedMatch.js b/client/src/store/modules/detailedMatch.js index d57fde4..2bc6222 100644 --- a/client/src/store/modules/detailedMatch.js +++ b/client/src/store/modules/detailedMatch.js @@ -41,6 +41,7 @@ export const actions = { // If the ranks of the players are not yet known if (resp.data.matchDetails.blueTeam.players[0].rank === undefined) { const ranks = await axios(({ url: 'match/details/ranks', data: { gameId, region }, method: 'POST' })).catch(() => { }) + if (!ranks) return console.log('--- RANK OF MATCH DETAILS ---') console.log(ranks.data) commit('MATCH_RANKS_FOUND', { gameId, ...ranks.data }) diff --git a/client/src/views/Summoner.vue b/client/src/views/Summoner.vue index 9f8e9c4..90862a9 100644 --- a/client/src/views/Summoner.vue +++ b/client/src/views/Summoner.vue @@ -78,6 +78,8 @@ export default { }, summonerFound() { this.fetchData() + // Set default value when the summoner changes + this.fixedSidebar = false } },