diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index 2e47115b..6e2f62d9 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -76,7 +76,7 @@ function updun() { }).then(function() { document.getElementById('newDN').innerHTML = firebase.auth().currentUser.displayName; document.getElementById('status').innerHTML = "You are signed in as: " + firebase.auth().currentUser.displayName; - firebase.firestore().collection("users").doc(user.uid).set({alias:firebase.auth().currentUser.displayName}}, { + firebase.firestore().collection("users").doc(user.uid).set({alias:firebase.auth().currentUser.displayName}, { merge: true }) }).catch(function(error) {