Fix IO-1828

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-09 17:14:30 -05:00
parent 3dcc1fe7e0
commit 46b58a6e1b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -1,6 +1,6 @@
import { useMutation, useQuery } from "@apollo/client";
import { Form, notification } from "antd";
import dayjs from "dayjs";
import dayjs from "../../utils/day";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";