Merged in feat/SW-1379-multiroom-summary (pull request #1198)
Feat/SW-1379 multiroom summary * fix: added early return in hotel query and added missing type annotations * feat(SW-1379): update summary to support multiple rooms and add tests * fix: added check for room number when using isMember for member prices * fix: remove mocked array * fix: minor bug fixes in rate details popup * fix: translation key Approved-by: Pontus Dreij Approved-by: Arvid Norlin
This commit is contained in:
@@ -1129,17 +1129,17 @@ export const hotelQueryRouter = router({
|
||||
}
|
||||
|
||||
const countries = await getCountries(options, searchParams, ctx.lang)
|
||||
|
||||
let citiesByCountry = null
|
||||
if (countries) {
|
||||
citiesByCountry = await getCitiesByCountry(
|
||||
countries,
|
||||
options,
|
||||
searchParams,
|
||||
ctx.lang
|
||||
)
|
||||
if (!countries) {
|
||||
return null
|
||||
}
|
||||
|
||||
const citiesByCountry = await getCitiesByCountry(
|
||||
countries,
|
||||
options,
|
||||
searchParams,
|
||||
ctx.lang
|
||||
)
|
||||
|
||||
const locations = await getLocations(
|
||||
ctx.lang,
|
||||
options,
|
||||
|
||||
Reference in New Issue
Block a user