Merged in fix/ancillary-payed-with-points-name (pull request #1716)
fix: added ancillary with points show correct name * fix: added ancillary with points show correct name Approved-by: Niclas Edenvin
This commit is contained in:
@@ -60,7 +60,10 @@ export function AddedAncillaries({
|
|||||||
const ancillaryTitle =
|
const ancillaryTitle =
|
||||||
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
|
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
|
||||||
? intl.formatMessage({ id: "Breakfast" })
|
? intl.formatMessage({ id: "Breakfast" })
|
||||||
: (ancillaries?.find((a) => a.id === ancillary.code)?.title ?? "")
|
: (ancillaries?.find(
|
||||||
|
(a) =>
|
||||||
|
a.id === ancillary.code || a.loyaltyCode === ancillary.code
|
||||||
|
)?.title ?? "")
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user