diff --git a/client/src/components/Summoner/Champions/FilterQueue.vue b/client/src/components/Summoner/Champions/FilterQueue.vue index 1c28c46..1f82b95 100644 --- a/client/src/components/Summoner/Champions/FilterQueue.vue +++ b/client/src/components/Summoner/Champions/FilterQueue.vue @@ -18,6 +18,8 @@ diff --git a/client/src/store/modules/summoner.js b/client/src/store/modules/summoner.js index 39f329a..7ab3864 100644 --- a/client/src/store/modules/summoner.js +++ b/client/src/store/modules/summoner.js @@ -31,6 +31,9 @@ export const mutations = { state.champions.championsLoaded = false state.overview.loaded = false }, + CHAMPIONS_NOT_FOUND(state) { + state.champions.championsLoaded = false + }, CHAMPIONS_FOUND(state, { champions }) { state.champions.list = champions state.champions.championsLoaded = true @@ -91,6 +94,9 @@ export const actions = { console.log(error) } }, + championsNotLoaded({ commit }) { + commit('CHAMPIONS_NOT_FOUND') + }, async championsRequest({ commit }, queue = null) { const resp = await axios(({ url: 'summoner-champions', data: { puuid: state.basic.account.puuid, queue: queue }, method: 'POST' })).catch(() => { }) console.log('---CHAMPIONS---')