Skip to content

Commit

Permalink
Update packages/reports/src/Components/Form/CompositeCalendar/two-mon…
Browse files Browse the repository at this point in the history
…th-picker.tsx

Co-authored-by: Niloofar Sadeghi <93518187+niloofar-deriv@users.noreply.github.com>
  • Loading branch information
sergei-deriv and niloofar-deriv committed Jan 11, 2023
1 parent f3ed5e2 commit bfd99f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TwoMonthPicker = React.memo(({ onChange, isPeriodDisabled, value }: TTwoMo
* @param {moment.Moment} date
* @return {boolean}
*/
const shouldDisableDate = (date: moment.Moment): boolean => {
const shouldDisableDate = (date: moment.Moment) => isPeriodDisabled(date.unix());
return isPeriodDisabled(date.unix());
};

Expand Down

0 comments on commit bfd99f6

Please sign in to comment.