chore: remove locations type to opt for location in array instead, this highlights array objects
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user