tf-checkout-react 1.7.30 → 1.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tf-checkout-react.cjs.development.js +6 -6
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +6 -6
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ticketsContainer/TicketsSection.tsx +4 -4
- package/src/components/ticketsContainer/TimeSlotTicketRow.tsx +2 -2
package/package.json
CHANGED
|
@@ -74,11 +74,11 @@ export const TicketsSection = ({
|
|
|
74
74
|
const ticketFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
75
75
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
76
76
|
: ticket.feeIncluded ? +ticket.basePrice : +ticket.cost
|
|
77
|
-
const ticketFinalPriceFormatted = `${priceSymbol} ${
|
|
77
|
+
const ticketFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketFinalPrice.toFixed(2))}`
|
|
78
78
|
const ticketOldFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
79
79
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
80
80
|
: ticket.feeIncluded ? +ticket.oldBasePrice : +ticket.oldCost
|
|
81
|
-
const ticketOldFinalPriceFormatted = `${priceSymbol} ${
|
|
81
|
+
const ticketOldFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketOldFinalPrice.toFixed(2))}`
|
|
82
82
|
const ticketFeeAmount = (+ticket.basePrice - +ticket.cost).toFixed(2)
|
|
83
83
|
const ticketBreakdown = !ticket.feeIncluded
|
|
84
84
|
? '(+ fees at checkout)'
|
|
@@ -214,11 +214,11 @@ export const TicketsSection = ({
|
|
|
214
214
|
const ticketFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
215
215
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
216
216
|
: ticket.feeIncluded ? +ticket.basePrice : +ticket.cost
|
|
217
|
-
const ticketFinalPriceFormatted = `${priceSymbol} ${
|
|
217
|
+
const ticketFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketFinalPrice.toFixed(2))}`
|
|
218
218
|
const ticketOldFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
219
219
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
220
220
|
: ticket.feeIncluded ? +ticket.oldBasePrice : +ticket.oldCost
|
|
221
|
-
const ticketOldFinalPriceFormatted = `${priceSymbol} ${
|
|
221
|
+
const ticketOldFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketOldFinalPrice.toFixed(2))}`
|
|
222
222
|
const ticketFeeAmount = (+ticket.basePrice - +ticket.cost).toFixed(2)
|
|
223
223
|
const ticketBreakdown = !ticket.feeIncluded
|
|
224
224
|
? '(+ fees at checkout)'
|
|
@@ -66,11 +66,11 @@ export const TimeSlotTicketRow = ({
|
|
|
66
66
|
const ticketFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
67
67
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
68
68
|
: ticket.feeIncluded ? +ticket.basePrice : +ticket.cost
|
|
69
|
-
const ticketFinalPriceFormatted = `${priceSymbol} ${
|
|
69
|
+
const ticketFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketFinalPrice.toFixed(2))}`
|
|
70
70
|
const ticketOldFinalPrice = ticket.feeIncluded && !ticket.isForward
|
|
71
71
|
? +(ticket.x_face_value || ticket.basePrice)
|
|
72
72
|
: ticket.feeIncluded ? +ticket.oldBasePrice : +ticket.oldCost
|
|
73
|
-
const ticketOldFinalPriceFormatted = `${priceSymbol} ${
|
|
73
|
+
const ticketOldFinalPriceFormatted = `${priceSymbol} ${parseFloat(ticketOldFinalPrice.toFixed(2))}`
|
|
74
74
|
const ticketFeeAmount = (+ticket.basePrice - +ticket.cost).toFixed(2)
|
|
75
75
|
const ticketBreakdown = !ticket.feeIncluded
|
|
76
76
|
? '(+ fees at checkout)'
|