summit-registration-lite 6.0.0-beta.3 → 6.0.1
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 +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2652,6 +2652,7 @@ const StripeForm = ({
|
|
|
2652
2652
|
|
|
2653
2653
|
|
|
2654
2654
|
|
|
2655
|
+
|
|
2655
2656
|
const stripe_component_StripeProvider = ({
|
|
2656
2657
|
userProfile,
|
|
2657
2658
|
reservation,
|
|
@@ -2740,7 +2741,7 @@ const stripe_component_StripeProvider = ({
|
|
|
2740
2741
|
amount: reservation?.amount_in_cents,
|
|
2741
2742
|
appearance: stripeStyle
|
|
2742
2743
|
};
|
|
2743
|
-
return reservation ? /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2744
|
+
return reservation && !(0,utils/* isFreeOrder */.yk)(reservation) && !(0,utils/* isPrePaidOrder */.xm)(reservation) ? /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2744
2745
|
stripe: stripePromise,
|
|
2745
2746
|
options: options
|
|
2746
2747
|
}, /*#__PURE__*/external_react_default().createElement(stripe_form, {
|
|
@@ -4304,6 +4305,9 @@ const RegistrationLite = _ref => {
|
|
|
4304
4305
|
applyPromoCode: applyPromoCode,
|
|
4305
4306
|
removePromoCode: () => {
|
|
4306
4307
|
setFormErrors({});
|
|
4308
|
+
setFormValues(registration_lite_objectSpread(registration_lite_objectSpread({}, formValues), {}, {
|
|
4309
|
+
promoCode: ""
|
|
4310
|
+
}));
|
|
4307
4311
|
removePromoCode();
|
|
4308
4312
|
},
|
|
4309
4313
|
promoCode: promoCode,
|
|
@@ -4428,7 +4432,7 @@ RegistrationLite.defaultProps = {
|
|
|
4428
4432
|
noAllowedTicketsMessage: '<span>You already have purchased all available tickets for this event and/or there are no tickets available for you to purchase.</span><br/><span><a href="/a/my-tickets">Visit the my orders / my tickets page</a> to review your existing tickets.</span>',
|
|
4429
4433
|
ticketTaxesErrorMessage: '<span>There was an error getting the information for the tickets. Please try it again.</span>',
|
|
4430
4434
|
allowPromoCodes: true,
|
|
4431
|
-
companyDDLPlaceholder: '
|
|
4435
|
+
companyDDLPlaceholder: 'Type to select company',
|
|
4432
4436
|
authErrorCallback: error => {
|
|
4433
4437
|
console.log(error);
|
|
4434
4438
|
},
|