From 56a9869ae08bb8f22e50ef3cc1f433c4fbfa01fd Mon Sep 17 00:00:00 2001
From: AndyRamb <andyramb13@gmail.com>
Date: Tue, 3 Mar 2020 12:20:36 +0100
Subject: [PATCH] =?UTF-8?q?newInformation=20p=C3=A5=20user=20settings?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/main/webapp/js/settings.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/webapp/js/settings.js b/src/main/webapp/js/settings.js
index 1167fae..bd229b6 100644
--- a/src/main/webapp/js/settings.js
+++ b/src/main/webapp/js/settings.js
@@ -21,7 +21,7 @@ function editUser (event) {
         .then(response => response.json())
         .then(response => {
             if (response === true) {
-                sessionStorage.setItem("username", user.username);
+                sessionStorage.setItem("username", newInformation.username);
                 alert("Bruker oppdatert");
                 window.location.href = "../app.html";
             } else {
-- 
GitLab