fix(BOOK-412): Using internalCategoryName to map ancillaries and show translated categoryName only
Approved-by: Linus Flood
This commit is contained in:
@@ -74,11 +74,19 @@ export function Ancillaries({
|
||||
loyaltyCode: undefined,
|
||||
points: undefined,
|
||||
hotelId: Number(bookedRoom.hotelId),
|
||||
categoryName: "Food",
|
||||
internalCategoryName: "Food",
|
||||
translatedCategoryName: intl.formatMessage({
|
||||
defaultMessage: "Food",
|
||||
}),
|
||||
}
|
||||
: undefined
|
||||
|
||||
const allAncillaries = mapAncillaries(ancillaries, breakfastAncillary, user)
|
||||
const allAncillaries = mapAncillaries(
|
||||
intl,
|
||||
ancillaries,
|
||||
breakfastAncillary,
|
||||
user
|
||||
)
|
||||
|
||||
if (!allAncillaries.length) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user