From 1073bc458a37aa0f99263f6515be261a47b7a887 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Sat, 9 Feb 2019 14:32:52 -0600 Subject: [PATCH] typo fix --- website/public/profile/scripts.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index 105da640..c503777e 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -77,18 +77,19 @@ function updun() { function updem() { var user = firebase.auth().currentUser; user.updateEmail("user@example.com").then(function() { - document.getElementById('newDN').value = firebase.auth().currentUser.email; - if (user.displayName != null) { - document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; - document.getElementById('newDN').value = user.displayName; - } else if (user.email != null) { - document.getElementById('status').innerHTML = "You are signed in as: " + user.email; - }).catch(function(error) { - if (error.code == 'auth/requires-recent-login') { - alert("Please sign in again to delete your account.") - window.location.href = '../'; - } else { - alert("there was a problem: " + error) - } - }); - } + document.getElementById('newDN').value = firebase.auth().currentUser.email; + if (user.displayName != null) { + document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; + document.getElementById('newDN').value = user.displayName; + } else if (user.email != null) { + document.getElementById('status').innerHTML = "You are signed in as: " + user.email; + } + }).catch(function(error) { + if (error.code == 'auth/requires-recent-login') { + alert("Please sign in again to delete your account.") + window.location.href = '../'; + } else { + alert("there was a problem: " + error) + } + }); +}