mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 09:59:10 +00:00
test bugfix
This commit is contained in:
parent
3e76c55801
commit
b0782ed74e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user