diff --git a/website/public/team/scripts.js b/website/public/team/scripts.js index 5eab0bc3..e5431ca2 100644 --- a/website/public/team/scripts.js +++ b/website/public/team/scripts.js @@ -99,7 +99,7 @@ function checkKeyMatch(dt,tn,key){ function reqjt(tn,tc){ user=firebase.auth().currentUser; dict=firebase.firestore().collection('teamData').doc('joinCodes').data(); - if checkKeyMatch(dict,tn,tc){ + if (checkKeyMatch(dict,tn,tc)){ push={}; push[tn]='scout'; firebase.firestore().collection("UserAssociations").doc(user.uid).set(push, {