round off the basePrice and strikedPrice

This commit is contained in:
aryabenade
2026-04-23 19:31:26 +05:30
parent 16fe56913d
commit 37601dd51d

View File

@@ -150,9 +150,9 @@ function CheckoutConfigCard({
const cardMode = item?.cardType?.name === "selective_pass" ? "flexi" : "unlimited"
const adultPrice = item?.adultPrice * noOfAdults
const childPrice = item?.childPrice * noOfChildren
const basePrice = adultPrice + childPrice
const basePrice = Math.round(adultPrice + childPrice)
const taxAmount = Math.round(basePrice * 0.1)
const strikedPrice = basePrice + 20
const strikedPrice = Math.round(basePrice + 20)
const [addCardToCart] = useAddCardToCartMutation()