fix structure

This commit is contained in:
Jacob Levine 2019-03-07 19:55:30 -06:00
parent b5d8851c44
commit 0684f982b7

View File

@ -106,7 +106,9 @@ function reqjt(tn,tc){
push[tn]='scout';
firebase.firestore().collection("UserAssociations").doc(user.uid).set(push, {
merge: true
}).then(function(doc) {
}).then(function() {
teamAssoc = firebase.firestore().collection('UserAssociations').doc(user.uid)
teamAssoc.get().then(function(doc) {
if (doc.exists) {
list = doc.data()
teamNums = Object.keys(list)
@ -118,6 +120,7 @@ function reqjt(tn,tc){
document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
}
})
})
}else{
alert("You don't have a correct join key. Please check it and try again.")
console.log(dict)