Skip to content

Commit

Permalink
had mistyped ILocationAPI[] as IAllLocationData (fixed now)
Browse files Browse the repository at this point in the history
  • Loading branch information
cirex-web committed Dec 19, 2023
1 parent b197050 commit f1678fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
LocationState,
ITimeSlotTime,
ITimeSlot,
ILocationAPI,
} from '../types/locationTypes';
import {
diffInMinutes,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f1678fc

Please sign in to comment.