Skip to content

Commit

Permalink
fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshman committed Feb 8, 2017
1 parent 808459f commit b1240c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reactJS/app/actions/registerActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function registerEvent(name, purpose, dateArray, location) {
}

function storeEvent(json) {
console.log('coming here' + JSON.stringify(json));
// console.log('coming here' + JSON.stringify(json));
return {
type: STORE_EVENT,
eventObj: json.data.event
Expand Down
9 changes: 5 additions & 4 deletions reactJS/app/components/EventPageComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ class EventPageComponent extends Component {
}

updateAttendee() {
console.log("coming inside update attendee");
if (this.props.attendeeName.length === 0) {
this.props.dispatch(storeAttendeeNameErrorLabel(this.props.languageJson.attendeeNameErrorLabel));
this.props.dispatch(updateNotificationFlag('attendeeNameEmpty')); //If name is empty, bring snackbar
Expand Down Expand Up @@ -220,10 +221,10 @@ class EventPageComponent extends Component {
checkDisableUpdateFlag() {
let cookieAttendee = cookie.load(encodeURI(this.props.params.eventId));
if (this.props.disableFlag === 'updateAttendee') {
console.log("post update disable condition passes");
// console.log("post update disable condition passes");
return true;
} else if (this.props.attendeeName !== cookieAttendee || this.checkAttendeeDateSelectionWithPresentSelection()) {
console.log("pre update siable condition passes");
// console.log("pre update siable condition passes");
return false;
} else {
return true;
Expand All @@ -246,7 +247,7 @@ class EventPageComponent extends Component {
let attendeeDetails = this.getCookieAttendeeDetails();

for (let j = 0; j < attendees.length; j++) {
if (this.props.attendeeName.toUpperCase() === attendees[j].attendeeName.toUpperCase() && (attendeeDetails._id !== attendees[j]._id) ) {
if (this.props.attendeeName.toUpperCase() === attendees[j].attendeeName.toUpperCase() && (attendeeDetails.attendeeId !== attendees[j].attendeeId) ) {
return true;
}
}
Expand Down Expand Up @@ -383,7 +384,7 @@ class EventPageComponent extends Component {
if (this.props.weather.length === 0) {
// when weather information from yahoo is not available. render dates alone.
datesInColumn = this.props.eventObj.dateArray;
console.log("no weather");
// console.log("no weather");
} else {
// After weather info from yahoo, add forecast images to date.
// formats the (Sun, Oct 2nd 2016) to (Oct 2 2016) for date validation.
Expand Down

0 comments on commit b1240c4

Please sign in to comment.