Skip to content

Commit

Permalink
Update FilterableDateRange.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinh8124 committed Nov 15, 2023
1 parent 207abf9 commit 0864d3b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export function FilterableDateRange({ value, onChange, ...props }: Props) {
setOpen(updateOpen);
};

const checkSingleDateSelection = (from: Date, to: Date) => {
const checkSingleDateSelection = (
from: Date | undefined,
to: Date | undefined
) => {
if (from && !to) {
const rangeObject = getDateRange(from, endOfDay(from));
onChange(rangeObject);
Expand Down

0 comments on commit 0864d3b

Please sign in to comment.