diff --git a/src/pages/Well/Reports/DailyReport/index.jsx b/src/pages/Well/Reports/DailyReport/index.jsx index aa19d13..0c303b1 100644 --- a/src/pages/Well/Reports/DailyReport/index.jsx +++ b/src/pages/Well/Reports/DailyReport/index.jsx @@ -72,8 +72,7 @@ const DailyReport = memo(() => { const filteredData = useMemo(() => { if (!searchDate) return data - const endDate = moment(searchDate[1]).add(1, 'd') - return data.filter((row) => moment(row.reportDate).isBetween(searchDate[0], endDate, 'ms', '[)')) + return data.filter((row) => moment(row.reportDate).isBetween(searchDate[0], searchDate[1], 'day', '[]')) }, [data, searchDate]) return (