Skip to content

Commit

Permalink
validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Jan 13, 2024
1 parent 7e92704 commit 4c48cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/Trigger/Trigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dayjs.extend(utc);

const checkDateTimeValidation = (startAtValue: string, startDateValue: string) => {
const isDateAhead = dayjs(startDateValue).isAfter(dayjs());
const isTimeAhead = startAtValue > dayjs().format(EXTENDED_TIME_FORMAT);
const isTimeAhead = dayjs(startAtValue).isAfter(dayjs());

if (!isDateAhead) {
// if start date is current date then only check for time
Expand Down

0 comments on commit 4c48cda

Please sign in to comment.