tf-checkout-react 1.4.11 → 1.4.13
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/tf-checkout-react.cjs.development.js +9 -5
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +9 -5
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +4 -2
- package/src/components/seatMapContainer/TicketsSection.tsx +3 -0
- package/src/components/seatMapContainer/index.tsx +4 -1
- package/src/components/seatMapContainer/utils.ts +1 -1
- package/src/types/seatMap.d.ts +1 -0
|
@@ -1241,8 +1241,10 @@ var updateVerificationStatus = /*#__PURE__*/function () {
|
|
|
1241
1241
|
_context10.next = 2;
|
|
1242
1242
|
return publicRequest.patch('v1/authenticate/verify', {
|
|
1243
1243
|
data: {
|
|
1244
|
-
|
|
1245
|
-
|
|
1244
|
+
attributes: {
|
|
1245
|
+
verification: {
|
|
1246
|
+
verificationStatus: 'PENDING'
|
|
1247
|
+
}
|
|
1246
1248
|
}
|
|
1247
1249
|
}
|
|
1248
1250
|
});
|
|
@@ -8285,7 +8287,9 @@ var TicketsSection$1 = function TicketsSection(props) {
|
|
|
8285
8287
|
className: "ticketPrice"
|
|
8286
8288
|
}, "Price:", React__default.createElement("span", {
|
|
8287
8289
|
className: "ticketPrice-value"
|
|
8288
|
-
}, currencySymbol + " " + finalPrice)
|
|
8290
|
+
}, currencySymbol + " " + finalPrice), React__default.createElement("span", {
|
|
8291
|
+
className: "fees"
|
|
8292
|
+
}, selectedTicketData.fee_included ? ' (incl. Fees)' : ' (excl. Fees)')), !_isEmpty(selectedTicketData.ticket_type_deposit) && React__default.createElement("div", {
|
|
8289
8293
|
className: "ticketDeposit"
|
|
8290
8294
|
}, "Deposit:", React__default.createElement("span", {
|
|
8291
8295
|
className: "ticketPrice-value"
|
|
@@ -8547,7 +8551,7 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8547
8551
|
}, []);
|
|
8548
8552
|
var handleSeatReservation = /*#__PURE__*/function () {
|
|
8549
8553
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(eventId, tierId, seatId) {
|
|
8550
|
-
var reservationData, relations, _keys2, firstItem;
|
|
8554
|
+
var reservationData, relations, _keys2, firstItem, _error$response, _error$response$data;
|
|
8551
8555
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8552
8556
|
while (1) switch (_context3.prev = _context3.next) {
|
|
8553
8557
|
case 0:
|
|
@@ -8572,7 +8576,7 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8572
8576
|
case 15:
|
|
8573
8577
|
_context3.prev = 15;
|
|
8574
8578
|
_context3.t0 = _context3["catch"](1);
|
|
8575
|
-
setError('Something went wrong');
|
|
8579
|
+
setError((_context3.t0 == null ? void 0 : (_error$response = _context3.t0.response) == null ? void 0 : (_error$response$data = _error$response.data) == null ? void 0 : _error$response$data.message) === 'Selected seat is not available' ? 'No more of this ticket type are available right now - they’re either sold out or in people’s shopping carts. Try refreshing the page!' : 'Something went wrong');
|
|
8576
8580
|
case 18:
|
|
8577
8581
|
_context3.prev = 18;
|
|
8578
8582
|
setIsReserving(false);
|