Skip to content

Commit

Permalink
Merge pull request #568 from ferishili/issue-566
Browse files Browse the repository at this point in the history
Fix type error when opening statistics page
  • Loading branch information
ziegenberg authored Jun 4, 2024
2 parents 889eed0 + ad00a2c commit 3867c81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}, []);

Expand Down

0 comments on commit 3867c81

Please sign in to comment.