diff --git a/pages/[location]/boulder/index.tsx b/pages/[location]/boulder/index.tsx index cb74fed..56f0058 100644 --- a/pages/[location]/boulder/index.tsx +++ b/pages/[location]/boulder/index.tsx @@ -18,19 +18,19 @@ export default function Page() { hasRole("ROLE_ADMIN") && query.forUser ? `/api/${currentLocation?.url}/users/${query.forUser}` : null, - fetcher + fetcher, ); const { data: event, isLoading: eventIsLoading } = useSWR( query.forEvent ? `/api/${currentLocation?.url}/events/${query.forEvent}` : null, - fetcher + fetcher, ); const { data: boulders } = useSWR( `/api/${currentLocation?.url}/boulders`, - fetcher + fetcher, ); if (!boulders || eventIsLoading) { @@ -74,7 +74,8 @@ export default function Page() { return ( <>

- Boulder ({event ? event.boulders.length : boulders?.length}) + {event ? event.name : null} Boulder ( + {event ? event.boulders.length : boulders?.length})