Skip to content

Commit

Permalink
fix: end date was generating a bug on start date (BON-795)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Mazzon committed Oct 26, 2023
1 parent 10bbd51 commit fb2bc89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const BondscapeDateTimePicker = ({
value={initialStartValue ? dayjs(initialStartValue) : undefined}
disabledDate={
maxDate
? (current) => current > maxDate
? (current) => current > maxDate || current < dayjs()
: (current) => current < dayjs()
}
onChange={(date) => {
Expand Down

0 comments on commit fb2bc89

Please sign in to comment.