Fixed not-loading-user bug

This commit is contained in:
Maximilian Giller 2021-01-03 20:44:39 +01:00
parent 1ca7f1b124
commit 9ea3d30633

View file

@ -222,7 +222,7 @@ export const juggl = {
return true; return true;
}); });
}, },
loadSavedLogin({ commit }) { loadSavedLogin() {
var userId = localStorage.getItem("userId"); var userId = localStorage.getItem("userId");
var apiKey = localStorage.getItem("apiKey"); var apiKey = localStorage.getItem("apiKey");
@ -230,7 +230,7 @@ export const juggl = {
return; return;
} }
commit("login", { apiKey: apiKey, userId: userId }); this.dispatch("login", { apiKey: apiKey, userId: userId });
}, },
removeLocalRecords({ commit }) { removeLocalRecords({ commit }) {
commit("setRecords", []); commit("setRecords", []);