Skip to content

Commit f69a0ce

Browse files
committed
Reset active game when returning to game selection screen
1 parent 0381d10 commit f69a0ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/store/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ export const store = {
7070
return settings;
7171
},
7272

73-
async resetLocalState({commit}: Context) {
73+
async resetLocalState({commit, dispatch}: Context) {
7474
commit('profile/reset');
7575
commit('profiles/reset');
7676
commit('tsMods/reset');
7777
commit('modFilters/reset');
78+
await dispatch('resetActiveGame');
7879
},
7980
},
8081
mutations: {

0 commit comments

Comments
 (0)