From bfd99f64780d7c2ed86250f564cd1ed9f5a6fec1 Mon Sep 17 00:00:00 2001 From: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com> Date: Wed, 11 Jan 2023 01:19:05 -0500 Subject: [PATCH] Update packages/reports/src/Components/Form/CompositeCalendar/two-month-picker.tsx Co-authored-by: Niloofar Sadeghi <93518187+niloofar-deriv@users.noreply.github.com> --- .../src/Components/Form/CompositeCalendar/two-month-picker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reports/src/Components/Form/CompositeCalendar/two-month-picker.tsx b/packages/reports/src/Components/Form/CompositeCalendar/two-month-picker.tsx index d020335589a8..563ae8447dee 100644 --- a/packages/reports/src/Components/Form/CompositeCalendar/two-month-picker.tsx +++ b/packages/reports/src/Components/Form/CompositeCalendar/two-month-picker.tsx @@ -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()); };