Skip to content

Commit

Permalink
feat: correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
kz44 committed Apr 13, 2024
1 parent 1c2082c commit 991435b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/sportsmatch-app/src/pages/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export default function MainPage() {
}
const response = await EventsControllerService.getNearbyEvents(
requestEventDTO,
{},
0,
20,
undefined,
)
if (!Array.isArray(response)) {
throw new Error('Failed to fetch event data')
Expand Down

0 comments on commit 991435b

Please sign in to comment.