From 87acefb74ed0d9f317ef29aa69690f842bbac8ba Mon Sep 17 00:00:00 2001 From: Gilgard <Hjelljord.alida@gmail.com> Date: Tue, 26 Apr 2022 10:36:42 +0200 Subject: [PATCH] removed unnessesary import --- src/components/LoginForm.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/LoginForm.vue b/src/components/LoginForm.vue index 660e60d..8aab5dc 100644 --- a/src/components/LoginForm.vue +++ b/src/components/LoginForm.vue @@ -101,7 +101,6 @@ import useVuelidate from "@vuelidate/core"; import { required, email, helpers } from "@vuelidate/validators"; import { doLogin } from "@/utils/apiutil"; -import store from "@/store"; import { parseUserFromToken } from "@/utils/token-utils"; export default { @@ -162,8 +161,7 @@ export default { this.$store.commit("saveToken", loginResponse); } - let user = parseUserFromToken(store.state.user.token); - console.log(user); + let user = parseUserFromToken(); let id = user.account_id; this.$router.push("/profile/" + id); }, -- GitLab