mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: forgot to check length in one spot
This commit is contained in:
parent
9af2dd90c3
commit
4fb7c4d6da
1 changed files with 3 additions and 1 deletions
|
|
@ -87,7 +87,9 @@ export const mutations = {
|
|||
OVERVIEW_FOUND(state, infos) {
|
||||
state.basic.recentActivity = infos.stats.recentActivity
|
||||
state.overview.matches = infos.matches
|
||||
if (infos.matches.length > 0) {
|
||||
state.overview.lastMatchId = infos.matches[infos.matches.length - 1].matchId
|
||||
}
|
||||
state.overview.stats = infos.stats
|
||||
state.overview.loaded = true
|
||||
state.records.recordsLoaded = false
|
||||
|
|
|
|||
Loading…
Reference in a new issue