IO-2517 Add same check within C/C form

This commit is contained in:
Allan Carr
2023-12-29 16:17:37 -08:00
parent 823f07409a
commit bfe94e3068
2 changed files with 6 additions and 7 deletions

View File

@@ -77,7 +77,8 @@ export default function CourtesyCarsList({ loading, courtesycars, refetch }) {
const mileageOver = nextservicekm ? nextservicekm <= mileage : false;
const dueForService =
nextservicedate && moment(nextservicedate).isSameOrBefore(moment());
nextservicedate &&
moment(nextservicedate).endOf("day").isSameOrBefore(moment());
return (
<Space>