diff --git a/src/components/statistics/Statistics.tsx b/src/components/statistics/Statistics.tsx index b3153d7902..f89427ec99 100644 --- a/src/components/statistics/Statistics.tsx +++ b/src/components/statistics/Statistics.tsx @@ -46,10 +46,9 @@ const Statistics: React.FC = () => { useEffect(() => { // fetch user information for organization id, then fetch statistics -// @ts-expect-error TS(7006): Parameter 'e' implicitly has an 'any' type. - fetchUserInfo().then((e) => { + dispatch(fetchUserInfo()).then(() => { dispatch(fetchStatisticsPageStatistics(organizationId)).then(); - }); + }) // eslint-disable-next-line react-hooks/exhaustive-deps }, []);