Skip to content

Commit

Permalink
refactor: change functions names
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Feb 8, 2025
1 parent 932e540 commit 03bb392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/DateUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ const getDayValidationErrorKey = (inputDate: Date): string => {
* param {Date} inputDate - The date to validate.
* returns {boolean} - Returns true if the input date is after the reference date, otherwise false.
*/
const isFutureDate = (inputDate: Date): boolean => {
const isFutureDay = (inputDate: Date): boolean => {
return isAfter(startOfDay(inputDate), startOfDay(new Date()));
};

Expand Down Expand Up @@ -966,7 +966,7 @@ const DateUtils = {
isValidDateString,
getFormattedDurationBetweenDates,
getFormattedDuration,
isFutureDate,
isFutureDay,
getFormattedDateRangeForPerDiem,
};

Expand Down

0 comments on commit 03bb392

Please sign in to comment.