Update API method to get all weekly reports

This commit is contained in:
Davenludd 2024-04-03 18:05:07 +02:00 committed by Peter KW
parent 620073f688
commit 82e72432f6

View file

@ -17,7 +17,7 @@ function AllTimeReportsInProject(): JSX.Element {
useEffect(() => {
const getWeeklyReports = async (): Promise<void> => {
const token = localStorage.getItem("accessToken") ?? "";
const response = await api.getWeeklyReportsForUser(
const response = await api.getAllWeeklyReportsForUser(
projectName ?? "",
token,
);