Merged in fix/api-change-remove-points-packages (pull request #1547)
Fix/api change remove points packages * fix/remove-points * fix: translate if points is currency Approved-by: Niclas Edenvin Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -66,19 +66,9 @@ export function AddedAncillaries({
|
||||
<div className={styles.paymentMobile}>
|
||||
<Body>{intl.formatMessage({ id: "Total" })}</Body>
|
||||
<Body textTransform="bold">
|
||||
{`${ancillary.totalPrice} ${ancillary.currency}`}
|
||||
</Body>
|
||||
<Divider
|
||||
variant="vertical"
|
||||
color="baseSurfaceSubtleNormal"
|
||||
/>
|
||||
<Body textTransform="bold">
|
||||
{intl.formatMessage(
|
||||
{ id: "{value} points" },
|
||||
{
|
||||
value: ancillary.points,
|
||||
}
|
||||
)}
|
||||
{ancillary.currency.toLowerCase() === "points"
|
||||
? `${ancillary.totalPrice} ${intl.formatMessage({ id: "Points" })}`
|
||||
: `${ancillary.totalPrice} ${ancillary.currency}`}
|
||||
</Body>
|
||||
</div>
|
||||
</div>
|
||||
@@ -121,16 +111,9 @@ export function AddedAncillaries({
|
||||
<div className={styles.payment}>
|
||||
<Body>{intl.formatMessage({ id: "Total" })}</Body>
|
||||
<Body textTransform="bold">
|
||||
{`${ancillary.totalPrice} ${ancillary.currency}`}
|
||||
</Body>
|
||||
<Divider variant="vertical" color="baseSurfaceSubtleNormal" />
|
||||
<Body textTransform="bold">
|
||||
{intl.formatMessage(
|
||||
{ id: "{value} points" },
|
||||
{
|
||||
value: ancillary.points,
|
||||
}
|
||||
)}
|
||||
{ancillary.currency.toLowerCase() === "points"
|
||||
? `${ancillary.totalPrice} ${intl.formatMessage({ id: "Points" })}`
|
||||
: `${ancillary.totalPrice} ${ancillary.currency}`}
|
||||
</Body>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user