diff --git a/src/util/locations.ts b/src/util/locations.ts index 5a1154ab..ccfbdcca 100644 --- a/src/util/locations.ts +++ b/src/util/locations.ts @@ -9,6 +9,7 @@ import { LocationState, ITimeSlotTime, ITimeSlot, + ILocationAPI, } from '../types/locationTypes'; import { diffInMinutes, @@ -127,7 +128,7 @@ export async function queryLocations( return []; } - const { locations }: { locations: IAllLocationData } = data; + const { locations }: { locations: ILocationAPI[] } = data; return locations.map((location) => ({ ...location, name: toTitleCase(location.name ?? 'Untitled'), // Convert names to title case