IO-2517 All Courtesy Car Warning Indicator

This commit is contained in:
Allan Carr
2023-12-29 16:03:40 -08:00
parent 1a4bc720c2
commit 823f07409a

View File

@@ -74,10 +74,10 @@ export default function CourtesyCarsList({ loading, courtesycars, refetch }) {
render: (text, record) => {
const { nextservicedate, nextservicekm, mileage } = record;
const mileageOver = nextservicekm <= mileage;
const mileageOver = nextservicekm ? nextservicekm <= mileage : false;
const dueForService =
nextservicedate && moment(nextservicedate).isBefore(moment());
nextservicedate && moment(nextservicedate).isSameOrBefore(moment());
return (
<Space>