mirror of
https://github.com/nat3yice/savethedate.git
synced 2026-03-10 00:41:20 +00:00
Add trim to avoid true with spaces being false
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user