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

Commit

Permalink
Run linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shammamah Hossain committed Nov 5, 2019
1 parent cc1b61a commit 2d628c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/convertToMoment.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ export default (newProps, momentProps) => {
dest[key] = null;

if (key === 'initial_visible_month') {
dest[key] = newProps['start_date'] || newProps['min_date_allowed']
|| newProps['end_date'] || newProps['max_date_allowed'] || undefined;
dest[key] =
newProps['start_date'] ||
newProps['min_date_allowed'] ||
newProps['end_date'] ||
newProps['max_date_allowed'] ||
undefined;
}
} else {
dest[key] = moment(value);
Expand Down

0 comments on commit 2d628c1

Please sign in to comment.