Fix JS error when logging in with bad credentials

This commit is contained in:
Florian Dupret 2021-04-30 08:26:05 +02:00
commit e222d0ca56

View file

@ -98,10 +98,9 @@ export default {
this.clear();
this.$store.commit("setToken", response.data.access_token);
this.$emit("logged-in");
}
let user = await api.users.self();
this.$store.commit("setUserData", user);
}
this.loading = false;
},