Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SemenStruchev committed Sep 18, 2024
1 parent 3226262 commit 177efe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DatePicker/RelativeDateRange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const RelativeDateRange = ({
onChange,
onSubmit,
timezoneName,
isFutureDatesAllowed = false // This prop used to be able to select Future Dates in RelativeDateRange,
isFutureDatesAllowed = false, // This prop used to be able to select Future Dates in RelativeDateRange,
}) => {
const handleChange = (e) => {
const rangeName = e.target.value;
Expand All @@ -249,6 +249,7 @@ export const RelativeDateRange = ({
// Filter out options if they are in the futureDates array
return options.filter((option) => !futureDates.includes(option.value));
}

return options;
};

Expand Down

0 comments on commit 177efe5

Please sign in to comment.