mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 04:47:27 +00:00
fix: load more button when Riot API is canceled
This commit is contained in:
parent
1a1e68bdaa
commit
565682aff7
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ export const mutations = {
|
|||
state.records.recordsLoaded = false
|
||||
}
|
||||
|
||||
state.overview.moreMatchesToFetch = newMatches.length >= state.overview.NB_LOAD_GAMES - 1
|
||||
state.overview.moreMatchesToFetch = newMatches.length > 0
|
||||
},
|
||||
OVERVIEW_FOUND(state, infos) {
|
||||
state.basic.recentActivity = infos.stats.recentActivity
|
||||
|
|
@ -86,7 +86,7 @@ export const mutations = {
|
|||
state.overview.stats = infos.stats
|
||||
state.overview.loaded = true
|
||||
state.records.recordsLoaded = false
|
||||
state.overview.moreMatchesToFetch = infos.matches.length >= state.overview.NB_LOAD_GAMES - 1
|
||||
state.overview.moreMatchesToFetch = infos.matches.length > 0
|
||||
},
|
||||
RECORDS_FOUND(state, { records }) {
|
||||
state.records.list = records
|
||||
|
|
|
|||
Loading…
Reference in a new issue