diff --git a/src/components/FormComponents/NewPasswordForm.vue b/src/components/FormComponents/NewPasswordForm.vue
index 4028053f7a5c7f4ed2ef7b47db1192c17b3a157a..d32c15d65f1d4938f01c9c862fe70cc49f58929c 100644
--- a/src/components/FormComponents/NewPasswordForm.vue
+++ b/src/components/FormComponents/NewPasswordForm.vue
@@ -183,7 +183,7 @@ export default {
         this.message = "";
         this.$store.commit("saveToken", newPasswordResponse.token);
         await this.$router.push("/");
-      } else  if (!newPasswordResponse.correctPassword){
+      } else if (!newPasswordResponse.correctPassword) {
         //The old password was not correct
         this.message = "Det gamle passordet stemmer ikke for denne brukeren";
       } else {
diff --git a/src/services/user.service.js b/src/services/user.service.js
index 59de28f4c4e7bd21b5be1d26e8e5bcf3fa967ab9..f07ef8c3acda54f54fa1189b63cbb07aa0412c87 100644
--- a/src/services/user.service.js
+++ b/src/services/user.service.js
@@ -7,7 +7,7 @@ const API_URL = process.env.VUE_APP_BASEURL;
 class UserService {
   async getUserFromId(userId) {
     return await axios
-      .get(API_URL + "/users/" + userId + "/profile", {
+      .get(API_URL + "users/" + userId + "/profile", {
         headers: tokenHeader(),
       })
       .then((res) => {