Merged in fix/explore-countrypages (pull request #1989)

Fix(SW-2513): Explore all hotels - country page links not showing

* fix: fix issue with country page urls


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-05-07 10:25:50 +00:00
parent 33ef22ae23
commit 78cef80de0
6 changed files with 30 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ import {
TrackingChannelEnum,
type TrackingSDKPageData,
} from "@/types/components/tracking"
import { ApiCountry, type Country } from "@/types/enums/country"
import type {
GetDestinationOverviewPageData,
GetDestinationOverviewPageRefsSchema,
@@ -241,7 +242,8 @@ export const destinationOverviewPageQueryRouter = router({
const countryPages = await getCountryPageUrls(lang)
const countryPage = countryPages.find(
(countryPage) => countryPage.country === country
(countryPage) =>
ApiCountry[lang][countryPage.country as Country] === country
)
return {