From a4840003f58e0ccdc9a97309d1494ef5decd0bb8 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Sat, 9 Feb 2019 14:46:59 -0600 Subject: [PATCH] what was i thinking? --- website/public/profile/scripts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index c503777e..52cdba59 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -76,8 +76,7 @@ function updun() { function updem() { var user = firebase.auth().currentUser; - user.updateEmail("user@example.com").then(function() { - document.getElementById('newDN').value = firebase.auth().currentUser.email; + user.updateEmail(document.getElementById('newEM').value).then(function() { if (user.displayName != null) { document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; document.getElementById('newDN').value = user.displayName;