From c73d3ab74d0c32e1994570f648b049729dc002d8 Mon Sep 17 00:00:00 2001 From: jajjibhai008 Date: Wed, 2 Oct 2024 14:47:39 +0500 Subject: [PATCH] fix: endDate on analytics v2 page --- src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx b/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx index 8ff1df8bd0..3da5a85919 100644 --- a/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx +++ b/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx @@ -30,6 +30,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => { startDate, endDate, }); + const currentDate = new Date().toISOString().split('T')[0]; return ( <> @@ -77,8 +78,8 @@ const AnalyticsV2Page = ({ enterpriseId }) => { setEndDate(e.target.value)} />