Skip to content

Commit

Permalink
Check based on attendeeID instead of their name
Browse files Browse the repository at this point in the history
  • Loading branch information
Murali Suresh committed Jan 27, 2017
1 parent 94eccdd commit 2aa3b97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reactJS/app/components/EventPageComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,20 +687,19 @@ class EventPageComponent extends Component {
for (let key in attendee.personalizedDateSelection) {
if (attendee.personalizedDateSelection.hasOwnProperty(key)) {
if (date === key) {

switch(attendee.personalizedDateSelection[key])
{
case "free":
free_count++;
(cookie_available && this.getCookieAttendeeDetails().attendeeName == attendee.attendeeName)?freelist.push(this.props.attendeeName):freelist.push(attendee.attendeeName);
(cookie_available && this.getCookieAttendeeDetails().attendeeId == attendee.attendeeId)?freelist.push(this.props.attendeeName):freelist.push(attendee.attendeeName);
break;
case "maybe":
maybe_count++;
(cookie_available && this.getCookieAttendeeDetails().attendeeName == attendee.attendeeName)?maybelist.push(this.props.attendeeName):maybelist.push(attendee.attendeeName);
(cookie_available && this.getCookieAttendeeDetails().attendeeId == attendee.attendeeId)?maybelist.push(this.props.attendeeName):maybelist.push(attendee.attendeeName);
break;
case "busy":
busy_count++;
(cookie_available && this.getCookieAttendeeDetails().attendeeName == attendee.attendeeName)?busylist.push(this.props.attendeeName):busylist.push(attendee.attendeeName);
(cookie_available && this.getCookieAttendeeDetails().attendeeId == attendee.attendeeId)?busylist.push(this.props.attendeeName):busylist.push(attendee.attendeeName);
break;
}

Expand Down

0 comments on commit 2aa3b97

Please sign in to comment.