Skip to content

Commit

Permalink
Fixes Calendar memory #110
Browse files Browse the repository at this point in the history
  • Loading branch information
Murali Suresh committed Feb 10, 2017
1 parent f403412 commit b1de08e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reactJS/app/components/RegisterComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class RegisterComponent extends Component {
this.props.dispatch(stepDecrease(this.props.stepIndex));
}

/**convertStringToDate(dateArray) {
convertStringToDate(dateArray) {
console.log("convertStringToDate");
console.log(dateArray);
let formattedEnteredDates = [];
Expand All @@ -249,7 +249,7 @@ class RegisterComponent extends Component {
}
console.log(convertedDatearray);
return convertedDatearray;
}*/
}

renderStepActions(step) {
const stepIndex = this.props.stepIndex;
Expand Down Expand Up @@ -386,7 +386,7 @@ class RegisterComponent extends Component {
color: '#FFF',
chevron: '#FFA726'
}
}} layout={layout} width={'100%'} height={height} rowHeight={55} selectedDates={[new Date()]} onSelect={this.storeDate} keyboardSupport={true}/>
}} layout={layout} width={'100%'} height={height} rowHeight={55} selectedDates={this.convertStringToDate(this.props.dateArray)} onSelect={this.storeDate} keyboardSupport={true}/>
);
}

Expand Down

0 comments on commit b1de08e

Please sign in to comment.