@pelcro/react-pelcro-js 3.26.0-beta.37 → 3.26.0-beta.38

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
@@ -18960,22 +18960,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18960
18960
  }
18961
18961
  });
18962
18962
  }
18963
- window.Pelcro.paymentMethods.deletePaymentMethod({
18964
- auth_token: window.Pelcro.user.read().auth_token,
18965
- payment_method_id: paymentMethodId
18966
- }, (err, res) => {
18967
- if (err) {
18968
- onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
18969
- return dispatch({
18970
- type: SHOW_ALERT,
18971
- payload: {
18972
- type: "error",
18973
- content: getErrorMessages(err)
18963
+ if (res) {
18964
+ setTimeout(() => {
18965
+ window.Pelcro.paymentMethods.deletePaymentMethod({
18966
+ auth_token: window.Pelcro.user.read().auth_token,
18967
+ payment_method_id: paymentMethodId
18968
+ }, (err, res) => {
18969
+ if (err) {
18970
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
18971
+ return dispatch({
18972
+ type: SHOW_ALERT,
18973
+ payload: {
18974
+ type: "error",
18975
+ content: getErrorMessages(err)
18976
+ }
18977
+ });
18974
18978
  }
18979
+ onSuccess(res);
18975
18980
  });
18976
- }
18977
- onSuccess(res);
18978
- });
18981
+ }, 1000);
18982
+ }
18979
18983
  });
18980
18984
  }
18981
18985
  function updateVantivCard() {
package/dist/index.esm.js CHANGED
@@ -18930,22 +18930,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18930
18930
  }
18931
18931
  });
18932
18932
  }
18933
- window.Pelcro.paymentMethods.deletePaymentMethod({
18934
- auth_token: window.Pelcro.user.read().auth_token,
18935
- payment_method_id: paymentMethodId
18936
- }, (err, res) => {
18937
- if (err) {
18938
- onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
18939
- return dispatch({
18940
- type: SHOW_ALERT,
18941
- payload: {
18942
- type: "error",
18943
- content: getErrorMessages(err)
18933
+ if (res) {
18934
+ setTimeout(() => {
18935
+ window.Pelcro.paymentMethods.deletePaymentMethod({
18936
+ auth_token: window.Pelcro.user.read().auth_token,
18937
+ payment_method_id: paymentMethodId
18938
+ }, (err, res) => {
18939
+ if (err) {
18940
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
18941
+ return dispatch({
18942
+ type: SHOW_ALERT,
18943
+ payload: {
18944
+ type: "error",
18945
+ content: getErrorMessages(err)
18946
+ }
18947
+ });
18944
18948
  }
18949
+ onSuccess(res);
18945
18950
  });
18946
- }
18947
- onSuccess(res);
18948
- });
18951
+ }, 1000);
18952
+ }
18949
18953
  });
18950
18954
  }
18951
18955
  function updateVantivCard() {
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.26.0-beta.37",
4
+ "version": "3.26.0-beta.38",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",