From 7c44c498a9fa1ea23c54786a1be4894f6805c5fb Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sun, 2 Feb 2020 15:38:56 +0100 Subject: [PATCH] fix: reload button on live tab --- client/src/store/modules/summoner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/store/modules/summoner.js b/client/src/store/modules/summoner.js index 3c03357..02e7c4f 100644 --- a/client/src/store/modules/summoner.js +++ b/client/src/store/modules/summoner.js @@ -54,7 +54,8 @@ export const mutations = { state.live.match = live state.live.liveLoaded = true }, - LIVE_NOT_FOUND(state) { + LIVE_LOADING(state) { + state.live.playing = true state.live.liveLoaded = false }, MATCHES_LOADING(state) { @@ -142,7 +143,7 @@ export const actions = { commit('CHAMPIONS_FOUND', { champions: resp.data }) }, async liveMatchRequest({ commit, rootState }) { - commit('LIVE_NOT_FOUND') + commit('LIVE_LOADING') const resp = await axios(({ url: 'summoner-live', data: { account: state.basic.account, region: rootState.currentRegion }, method: 'POST' })).catch(() => { }) console.log('---LIVE---') console.log(resp.data)