@pelcro/react-pelcro-js 3.6.0-beta.23 → 3.6.0-beta.25
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 +2 -5
- package/dist/index.esm.js +2 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15251,7 +15251,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15251
15251
|
}, (err, res) => {
|
|
15252
15252
|
if (err) {
|
|
15253
15253
|
// Inform the user if there was an error
|
|
15254
|
-
onFailure(
|
|
15254
|
+
onFailure(err);
|
|
15255
15255
|
dispatch({
|
|
15256
15256
|
type: DISABLE_SUBMIT,
|
|
15257
15257
|
payload: false
|
|
@@ -15264,7 +15264,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15264
15264
|
type: SHOW_ALERT,
|
|
15265
15265
|
payload: {
|
|
15266
15266
|
type: "error",
|
|
15267
|
-
content: getErrorMessages(
|
|
15267
|
+
content: getErrorMessages(err)
|
|
15268
15268
|
}
|
|
15269
15269
|
});
|
|
15270
15270
|
} else {
|
|
@@ -18523,9 +18523,6 @@ class DefaultNewsLetter extends React.Component {
|
|
|
18523
18523
|
});
|
|
18524
18524
|
|
|
18525
18525
|
_defineProperty$3(this, "postSubmit", () => {
|
|
18526
|
-
var _this$product, _this$product$paywall, _this$product2, _this$product2$paywal;
|
|
18527
|
-
|
|
18528
|
-
window.Pelcro.paywall.decrementPageViewFrequency((_this$product = this.product) === null || _this$product === void 0 ? void 0 : (_this$product$paywall = _this$product.paywall) === null || _this$product$paywall === void 0 ? void 0 : _this$product$paywall.newsletter_extra_visits, (_this$product2 = this.product) === null || _this$product2 === void 0 ? void 0 : (_this$product2$paywal = _this$product2.paywall) === null || _this$product2$paywal === void 0 ? void 0 : _this$product2$paywal.frequency_limit);
|
|
18529
18526
|
this.props.setView("meter");
|
|
18530
18527
|
});
|
|
18531
18528
|
|
package/dist/index.esm.js
CHANGED
|
@@ -15221,7 +15221,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15221
15221
|
}, (err, res) => {
|
|
15222
15222
|
if (err) {
|
|
15223
15223
|
// Inform the user if there was an error
|
|
15224
|
-
onFailure(
|
|
15224
|
+
onFailure(err);
|
|
15225
15225
|
dispatch({
|
|
15226
15226
|
type: DISABLE_SUBMIT,
|
|
15227
15227
|
payload: false
|
|
@@ -15234,7 +15234,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15234
15234
|
type: SHOW_ALERT,
|
|
15235
15235
|
payload: {
|
|
15236
15236
|
type: "error",
|
|
15237
|
-
content: getErrorMessages(
|
|
15237
|
+
content: getErrorMessages(err)
|
|
15238
15238
|
}
|
|
15239
15239
|
});
|
|
15240
15240
|
} else {
|
|
@@ -18493,9 +18493,6 @@ class DefaultNewsLetter extends Component {
|
|
|
18493
18493
|
});
|
|
18494
18494
|
|
|
18495
18495
|
_defineProperty$3(this, "postSubmit", () => {
|
|
18496
|
-
var _this$product, _this$product$paywall, _this$product2, _this$product2$paywal;
|
|
18497
|
-
|
|
18498
|
-
window.Pelcro.paywall.decrementPageViewFrequency((_this$product = this.product) === null || _this$product === void 0 ? void 0 : (_this$product$paywall = _this$product.paywall) === null || _this$product$paywall === void 0 ? void 0 : _this$product$paywall.newsletter_extra_visits, (_this$product2 = this.product) === null || _this$product2 === void 0 ? void 0 : (_this$product2$paywal = _this$product2.paywall) === null || _this$product2$paywal === void 0 ? void 0 : _this$product2$paywal.frequency_limit);
|
|
18499
18496
|
this.props.setView("meter");
|
|
18500
18497
|
});
|
|
18501
18498
|
|