test bugfix

This commit is contained in:
Jacob Levine 2019-03-07 19:47:35 -06:00
parent 3e76c55801
commit b0782ed74e

View File

@ -98,15 +98,9 @@ function checkKeyMatch(dt,tn,key){
}
function reqjt(tn,tc){
user=firebase.auth().currentUser;
dict={}
firebase.firestore().collection('teamData').doc('joinCodes').get().then(function(doc){
if (doc.exists) {
dict=doc.data();
} else {
// doc.data() will be undefined in this case
console.log("No such document!");
}
});
if (checkKeyMatch(dict,tn,tc)){
push={};
push[tn]='scout';
@ -128,6 +122,12 @@ function reqjt(tn,tc){
alert("You don't have a correct join key. Please check it and try again.")
console.log(dict)
}
} else {
// doc.data() will be undefined in this case
console.log("No such document!");
}
});
}
function signout() {