Add trim to avoid true with spaces being false

This commit is contained in:
Julien Lengrand-Lambert
2018-03-13 21:52:34 +01:00
parent 184a89e784
commit 2587390a17

View File

@@ -58,7 +58,7 @@
var key = elements[0].trim();
var emails = extractFromList(elements[1]);
var names = convertToNameObjects(extractFromList(elements[2]));
var isAmerican = (elements[3] == 'true');
var isAmerican = (elements[3].trim() == 'true');
console.log('saving ', key);
firebase.database().ref('attendees/' + key).set({
emails: emails,