Skip to content

Commit

Permalink
Rename endpoint to history
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Nov 12, 2023
1 parent fade0d0 commit bdf7213
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion pages/volunteerHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const VolunteerHistoryPage = () => {
const [error, setError] = useState<Error>();
// Fetch volunteer history events when rendered
useEffect(() => {
fetchData('/api/events/user')
fetchData('/api/events/history')
.then(data => setEvents(data))
.catch(err => setError(err));
}, []);
Expand Down

0 comments on commit bdf7213

Please sign in to comment.