tf-checkout-react 1.3.19 → 1.3.20

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.
@@ -5517,7 +5517,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
5517
5517
  _ref$handleNotInvited = _ref.handleNotInvitedModalClose,
5518
5518
  handleNotInvitedModalClose = _ref$handleNotInvited === void 0 ? _identity : _ref$handleNotInvited,
5519
5519
  _ref$handleInvalidLin = _ref.handleInvalidLinkModalClose,
5520
- handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin;
5520
+ handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin,
5521
+ ordersPath = _ref.ordersPath;
5521
5522
 
5522
5523
  var _useState = useState({}),
5523
5524
  selectedTickets = _useState[0],
@@ -5760,7 +5761,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
5760
5761
 
5761
5762
  var handleOrdersClick = function handleOrdersClick() {
5762
5763
  if (isWindowDefined) {
5763
- window.location.href = '/orders';
5764
+ window.location.href = ordersPath != null ? ordersPath : '/orders';
5764
5765
  }
5765
5766
  };
5766
5767
 
@@ -7200,7 +7201,8 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
7200
7201
  onDeclineTicketPurchaseSuccess = _ref$onDeclineTicketP === void 0 ? function () {} : _ref$onDeclineTicketP,
7201
7202
  _ref$onDeclineTicketP2 = _ref.onDeclineTicketPurchaseError,
7202
7203
  onDeclineTicketPurchaseError = _ref$onDeclineTicketP2 === void 0 ? function () {} : _ref$onDeclineTicketP2,
7203
- orderHash = _ref.orderHash;
7204
+ orderHash = _ref.orderHash,
7205
+ billingPath = _ref.billingPath;
7204
7206
  var isWindowDefined = typeof window !== 'undefined';
7205
7207
 
7206
7208
  var _useState = useState(''),
@@ -7270,7 +7272,7 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
7270
7272
  names_required = _get(data, 'names_required', false);
7271
7273
  event_id = _get(data, 'event_id');
7272
7274
  onProcessTicketSuccess(_response.data);
7273
- window.location.href = "/billing/billing-info/?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
7275
+ window.location.href = (billingPath != null ? billingPath : '/billing/billing-info/') + "?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
7274
7276
  _context.next = 35;
7275
7277
  break;
7276
7278