summit-registration-lite 5.0.20 → 5.0.21
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -731,7 +731,7 @@ const getTicketTaxes = (ticket, taxes) => {
|
|
|
731
731
|
const ticketTaxes = taxes.filter(tax => tax.ticket_types.includes(ticket?.id));
|
|
732
732
|
return `${ticketTaxes.length > 0 ? ` plus ${taxes.map(t => t.name).join(' & ')}` : ''}`;
|
|
733
733
|
};
|
|
734
|
-
const hasDiscountApplied = ticketType => ticketType
|
|
734
|
+
const hasDiscountApplied = ticketType => ticketType.hasOwnProperty('cost_with_applied_discount') && ticketType.cost !== ticketType?.cost_with_applied_discount;
|
|
735
735
|
const isFreeOrder = reservation => reservation.amount === 0;
|
|
736
736
|
const isPrePaidOrder = reservation => reservation.status === ORDER_STATUS_PAID && reservation.payment_method === ORDER_PAYMENT_METHOD_OFFLINE;
|
|
737
737
|
const getTicketCost = (ticket, quantity = 1) => {
|