feat: SW-2028 Fixed review comments
This commit is contained in:
@@ -6,6 +6,7 @@ import { getIntl } from "@/i18n"
|
||||
import styles from "./total.module.css"
|
||||
|
||||
import type { TotalProps } from "@/types/components/hotelReservation/myStay/receipt"
|
||||
import { CurrencyEnum } from "@/types/enums/currency"
|
||||
|
||||
export default async function Total({ booking, currency }: TotalProps) {
|
||||
const intl = await getIntl()
|
||||
@@ -14,7 +15,7 @@ export default async function Total({ booking, currency }: TotalProps) {
|
||||
const totalPriceInMoneyExclVat = booking.totalPriceExVat
|
||||
const totalVat = booking.vatAmount
|
||||
const totalPriceInPoints = booking.ancillaries
|
||||
.filter((a) => a.currency === "Points")
|
||||
.filter((a) => a.currency === CurrencyEnum.POINTS)
|
||||
.reduce((acc, curr) => acc + curr.totalPrice, 0)
|
||||
|
||||
const moneyString =
|
||||
|
||||
Reference in New Issue
Block a user