Skip to content

Commit

Permalink
Use strict comparison when looking for "yes" RSVPs
Browse files Browse the repository at this point in the history
  • Loading branch information
piontkowski committed Apr 10, 2018
1 parent 8bf806f commit c32e30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function parse_attendees(attendees) {

for (var i = 0; i < attendees.length; i++) {

if (attendees[i].response == "yes") {
if (attendees[i].response === "yes") {
var obj = {};
obj.name = attendees[i].member.name;
attendees[i].member_photo ? obj.photo = attendees[i].member_photo.photo_link : obj.photo = "";
Expand Down

0 comments on commit c32e30d

Please sign in to comment.