chore: remove locations type to opt for location in array instead, this highlights array objects

This commit is contained in:
Christian Andolf
2025-04-02 10:11:39 +02:00
parent 14f9b68365
commit 2a07fcf7be
4 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ import {
type InitState,
type State,
} from "@/types/components/form/bookingwidget"
import type { Locations } from "@/types/trpc/routers/hotel/locations"
import type { Location } from "@/types/trpc/routers/hotel/locations"
export const localStorageKey = "searchHistory"
export const sessionStorageKey = "searchData"
@@ -61,7 +61,7 @@ export function reducer(state: State, action: Action) {
}
})
const matches: Locations = []
const matches: Location[] = []
matchesMap.forEach((value) => {
matches.push(value)
})