From 090326c208b0cc12617b34a09d4ebfdd228073fa Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Tue, 4 Feb 2020 19:28:57 +0100 Subject: [PATCH] fix: sort seasons in select options --- client/src/store/modules/summoner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/store/modules/summoner.js b/client/src/store/modules/summoner.js index 02e7c4f..024edfa 100644 --- a/client/src/store/modules/summoner.js +++ b/client/src/store/modules/summoner.js @@ -83,7 +83,7 @@ export const mutations = { state.basic.account = infos.account state.basic.matchList = infos.matchList state.basic.ranked = infos.ranked - state.basic.seasons = infos.seasons + state.basic.seasons = infos.seasons.sort((a, b) => b - a) state.basic.status = 'found' state.live.match = infos.current state.live.playing = infos.playing