This commit is contained in:
Jacob Levine 2019-03-07 23:29:16 -06:00
parent 6247c7997f
commit b89fab51c3

View File

@ -56,7 +56,8 @@ function subRes() {
firebase.firestore().collection('teamData').doc('team-' + document.getElementById('tns').value).get().then(function(doc) { firebase.firestore().collection('teamData').doc('team-' + document.getElementById('tns').value).get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
comp = doc.data()['currentCompetition']; comp = doc.data()['currentCompetition'];
).then(function() { }
}).then(function() {
var user = firebase.auth().currentUser; var user = firebase.auth().currentUser;
@ -124,6 +125,6 @@ function subRes() {
alert('Submitted!') alert('Submitted!')
window.location.href = '../scout' window.location.href = '../scout'
}) })
} }
}) })
} }