IO-2517 Add same check within C/C form
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user