diff --git a/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx b/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx index 9f6c649c3..1401e6e9a 100644 --- a/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx +++ b/src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx @@ -22,8 +22,8 @@ const AnalyticsV2Page = ({ enterpriseId }) => { const [activeTab, setActiveTab] = useState('enrollments'); const [granularity, setGranularity] = useState(GRANULARITY.WEEKLY); const [calculation, setCalculation] = useState('Total'); - const [startDate, setStartDate] = useState(''); - const [endDate, setEndDate] = useState(''); + const [startDate, setStartDate] = useState(); + const [endDate, setEndDate] = useState(); const intl = useIntl(); const { isFetching, isError, data } = useEnterpriseAnalyticsAggregatesData({ enterpriseCustomerUUID: enterpriseId, @@ -195,7 +195,6 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
{ setActiveTab(tab); @@ -210,8 +209,8 @@ const AnalyticsV2Page = ({ enterpriseId }) => { })} > { })} > { })} > { })} > @@ -272,8 +271,8 @@ const AnalyticsV2Page = ({ enterpriseId }) => { })} >