fontdue-js 1.12.1 → 1.12.2
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## 1.12.2
|
|
2
|
+
|
|
3
|
+
- Fixes an issue completing checkout with a 100% coupon
|
|
4
|
+
|
|
5
|
+
## 1.12.1
|
|
6
|
+
|
|
7
|
+
- Fixes issues in the StoreModal router
|
|
8
|
+
|
|
9
|
+
## 1.12.0
|
|
10
|
+
|
|
11
|
+
- Added `indexExcludeTags` option to `storeModal` config
|
|
12
|
+
|
|
13
|
+
## 1.11.0
|
|
14
|
+
|
|
15
|
+
- Updated Stripe integration and checkout UX to support payment methods via
|
|
16
|
+
Stripe's Payment Element
|
|
17
|
+
|
|
1
18
|
## 1.10.2
|
|
2
19
|
|
|
3
20
|
- Fixed error importing module
|
|
@@ -63,15 +63,9 @@ const StoreModalReview = _ref => {
|
|
|
63
63
|
stripe = (0, _reactStripeJs.useStripe)();
|
|
64
64
|
elements = (0, _reactStripeJs.useElements)();
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
if (order.completedWithCoupon) {
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(_StoreModalDownload.default, {
|
|
69
|
-
order: order
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
const billingIdentity = order.billingIdentity;
|
|
73
|
-
const lastShownTotal = (0, _react.useRef)((_order$total = order.total) === null || _order$total === void 0 ? void 0 : _order$total.amount);
|
|
66
|
+
const lastShownTotal = (0, _react.useRef)(order === null || order === void 0 ? void 0 : (_order$total = order.total) === null || _order$total === void 0 ? void 0 : _order$total.amount);
|
|
74
67
|
const handleSubmit = () => {
|
|
68
|
+
if (!order) return;
|
|
75
69
|
if (!billingIdentity) {
|
|
76
70
|
console.error('No billing identity, required for payment');
|
|
77
71
|
return;
|
|
@@ -159,6 +153,13 @@ const StoreModalReview = _ref => {
|
|
|
159
153
|
route: 'checkout'
|
|
160
154
|
});
|
|
161
155
|
};
|
|
156
|
+
if (!order) return null;
|
|
157
|
+
if (order.completedWithCoupon) {
|
|
158
|
+
return /*#__PURE__*/_react.default.createElement(_StoreModalDownload.default, {
|
|
159
|
+
order: order
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
const billingIdentity = order.billingIdentity;
|
|
162
163
|
return /*#__PURE__*/_react.default.createElement(_StoreModalPageContainer.default, null, {
|
|
163
164
|
title: 'Review & pay',
|
|
164
165
|
body: /*#__PURE__*/_react.default.createElement(_StoreModalReviewLayout.default, {
|