@pelcro/react-pelcro-js 3.23.0-beta.6 → 3.23.0-beta.7

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.cjs.js CHANGED
@@ -20256,7 +20256,8 @@ const SubmitPaymentMethod = _ref => {
20256
20256
  const {
20257
20257
  plan,
20258
20258
  selectedDonationAmount,
20259
- customDonationAmount
20259
+ customDonationAmount,
20260
+ selectedPaymentMethodId
20260
20261
  } = usePelcro();
20261
20262
  const {
20262
20263
  t
@@ -20292,7 +20293,7 @@ const SubmitPaymentMethod = _ref => {
20292
20293
  if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
20293
20294
  setDisabled(disableSubmit);
20294
20295
  } else {
20295
- setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length) || emailError || passwordError || supportsCybersource && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !(year !== null && year !== void 0 && year.length));
20296
+ setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length) || emailError || passwordError || supportsCybersource && !selectedPaymentMethodId && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !selectedPaymentMethodId && !(year !== null && year !== void 0 && year.length));
20296
20297
  }
20297
20298
  }, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, emailError, passwordError, month, year]);
20298
20299
  return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
package/dist/index.esm.js CHANGED
@@ -20226,7 +20226,8 @@ const SubmitPaymentMethod = _ref => {
20226
20226
  const {
20227
20227
  plan,
20228
20228
  selectedDonationAmount,
20229
- customDonationAmount
20229
+ customDonationAmount,
20230
+ selectedPaymentMethodId
20230
20231
  } = usePelcro();
20231
20232
  const {
20232
20233
  t
@@ -20262,7 +20263,7 @@ const SubmitPaymentMethod = _ref => {
20262
20263
  if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
20263
20264
  setDisabled(disableSubmit);
20264
20265
  } else {
20265
- setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length) || emailError || passwordError || supportsCybersource && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !(year !== null && year !== void 0 && year.length));
20266
+ setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length) || emailError || passwordError || supportsCybersource && !selectedPaymentMethodId && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !selectedPaymentMethodId && !(year !== null && year !== void 0 && year.length));
20266
20267
  }
20267
20268
  }, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, emailError, passwordError, month, year]);
20268
20269
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.23.0-beta.6",
4
+ "version": "3.23.0-beta.7",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",