Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Use start date, if one is supplied, for initial_visible_month.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shammamah Hossain committed Oct 28, 2019
1 parent 2fbb041 commit f5bedde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/convertToMoment.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (newProps, momentProps) => {
dest[key] = null;

if (key === 'initial_visible_month') {
dest[key] = moment();
dest[key] = newProps['start_date'] ? moment(newProps['start_date']) : moment();
}
} else {
dest[key] = moment(value);
Expand Down

0 comments on commit f5bedde

Please sign in to comment.