tf-checkout-react 1.7.23 → 1.7.30

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.
@@ -42,6 +42,7 @@ export interface AttributesConfig {
42
42
  collect_mandatory_instagram: boolean;
43
43
  collect_optional_instagram: boolean;
44
44
  skip_billing_page: boolean;
45
+ addon_max_quantity_groups: number | null;
45
46
  cart: ICart[];
46
47
  }
47
48
  export interface ConfigsData {
@@ -1737,41 +1737,6 @@ var getConfirmationData = /*#__PURE__*/function () {
1737
1737
  return _ref4.apply(this, arguments);
1738
1738
  };
1739
1739
  }();
1740
- var getConditions = /*#__PURE__*/function () {
1741
- var _ref5 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(eventId) {
1742
- var response, adaptedData, returnData;
1743
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1744
- while (1) switch (_context5.prev = _context5.next) {
1745
- case 0:
1746
- _context5.next = 2;
1747
- return publicRequest.get("v1/event/" + eventId + "/conditions");
1748
- case 2:
1749
- response = _context5.sent;
1750
- adaptedData = _map(response.data.data.attributes, function (item) {
1751
- return {
1752
- id: nanoid.nanoid(),
1753
- text: item,
1754
- checked: false
1755
- };
1756
- });
1757
- returnData = _extends({}, response, {
1758
- data: _extends({}, response.data, {
1759
- data: _extends({}, response.data.data, {
1760
- attributes: adaptedData
1761
- })
1762
- })
1763
- });
1764
- return _context5.abrupt("return", returnData.data);
1765
- case 6:
1766
- case "end":
1767
- return _context5.stop();
1768
- }
1769
- }, _callee5);
1770
- }));
1771
- return function getConditions(_x5) {
1772
- return _ref5.apply(this, arguments);
1773
- };
1774
- }();
1775
1740
 
1776
1741
  var resaleTicket = /*#__PURE__*/function () {
1777
1742
  var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data, hash) {
@@ -5942,24 +5907,21 @@ var PaymentContainer = function PaymentContainer(_ref2) {
5942
5907
  var _useState5 = React.useState(true),
5943
5908
  paymentDataIsLoading = _useState5[0],
5944
5909
  setPaymentDataIsLoading = _useState5[1];
5945
- var _useState6 = React.useState([]),
5946
- conditions = _useState6[0],
5947
- setConditions = _useState6[1];
5948
- var _useState7 = React.useState(''),
5949
- currency = _useState7[0],
5950
- setCurrency = _useState7[1];
5910
+ var _useState6 = React.useState(''),
5911
+ currency = _useState6[0],
5912
+ setCurrency = _useState6[1];
5913
+ var _useState7 = React.useState(false),
5914
+ showPaymentPlanSection = _useState7[0],
5915
+ setShowPaymentPlanSection = _useState7[1];
5951
5916
  var _useState8 = React.useState(false),
5952
- showPaymentPlanSection = _useState8[0],
5953
- setShowPaymentPlanSection = _useState8[1];
5954
- var _useState9 = React.useState(false),
5955
- paymentPlanIsAvailable = _useState9[0],
5956
- setPaymentPlanIsAvailable = _useState9[1];
5957
- var _useState10 = React.useState(initialPaymentPlanConfiguration),
5958
- paymentPlanConfig = _useState10[0],
5959
- setPaymentPlanConfig = _useState10[1];
5960
- var _useState11 = React.useState(true),
5961
- paymentPlanUseSavedCard = _useState11[0],
5962
- setPaymentPlanUseSavedCard = _useState11[1];
5917
+ paymentPlanIsAvailable = _useState8[0],
5918
+ setPaymentPlanIsAvailable = _useState8[1];
5919
+ var _useState9 = React.useState(initialPaymentPlanConfiguration),
5920
+ paymentPlanConfig = _useState9[0],
5921
+ setPaymentPlanConfig = _useState9[1];
5922
+ var _useState10 = React.useState(true),
5923
+ paymentPlanUseSavedCard = _useState10[0],
5924
+ setPaymentPlanUseSavedCard = _useState10[1];
5963
5925
  var showFormTitle = Boolean(formTitle);
5964
5926
  var showErrorText = Boolean(errorText);
5965
5927
  var eventId = getQueryVariable('event_id') || _get(reviewData, 'cart[0].product_id') || '';
@@ -5973,9 +5935,6 @@ var PaymentContainer = function PaymentContainer(_ref2) {
5973
5935
  page: 'review',
5974
5936
  pageUrl: pageUrl
5975
5937
  });
5976
- console.log({
5977
- conditions: conditions
5978
- });
5979
5938
  React.useEffect(function () {
5980
5939
  var fetchPaymentData = /*#__PURE__*/function () {
5981
5940
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -6061,43 +6020,6 @@ var PaymentContainer = function PaymentContainer(_ref2) {
6061
6020
  fetchPaymentData();
6062
6021
  }
6063
6022
  }, [orderData, hash, isSinglePageCheckout, onGetPaymentDataError, onGetPaymentDataSuccess]);
6064
- //just once
6065
- React.useEffect(function () {
6066
- // fetch conditions data
6067
- var fetchConditions = /*#__PURE__*/function () {
6068
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
6069
- var conditionsResponse, conditionsInfo;
6070
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6071
- while (1) switch (_context2.prev = _context2.next) {
6072
- case 0:
6073
- if (!eventId) {
6074
- _context2.next = 6;
6075
- break;
6076
- }
6077
- _context2.next = 3;
6078
- return getConditions(eventId);
6079
- case 3:
6080
- conditionsResponse = _context2.sent;
6081
- conditionsInfo = conditionsResponse.data.attributes;
6082
- setConditions(conditionsInfo ? conditionsInfo.map(function (item) {
6083
- return {
6084
- id: nanoid.nanoid(),
6085
- text: item.text,
6086
- checked: false
6087
- };
6088
- }) : []);
6089
- case 6:
6090
- case "end":
6091
- return _context2.stop();
6092
- }
6093
- }, _callee2);
6094
- }));
6095
- return function fetchConditions() {
6096
- return _ref4.apply(this, arguments);
6097
- };
6098
- }();
6099
- fetchConditions();
6100
- }, [eventId]);
6101
6023
  var showPaymentForm = function showPaymentForm() {
6102
6024
  var _paymentPlanConfig$sa;
6103
6025
  if (hidePaymentForm) {
@@ -6154,10 +6076,6 @@ var PaymentContainer = function PaymentContainer(_ref2) {
6154
6076
  var isTable = orderData == null ? void 0 : orderData.guest_count;
6155
6077
  React.useEffect(function () {
6156
6078
  var paymentMethod = reviewData.payment_method || {};
6157
- console.log({
6158
- paymentMethod: paymentMethod,
6159
- enablePaymentPlan: enablePaymentPlan
6160
- });
6161
6079
  var paymentPlanAvailable = paymentMethod.stripe_payment_plan_enabled && enablePaymentPlan;
6162
6080
  setPaymentPlanIsAvailable(paymentPlanAvailable);
6163
6081
  if (paymentPlanAvailable) {
@@ -6520,38 +6438,36 @@ var usePaymentRedirect = function usePaymentRedirect(_ref) {
6520
6438
  isPaymentReturn = urlParams.get('payment_return');
6521
6439
  clientSecret = urlParams.get('payment_intent_client_secret');
6522
6440
  if (!(isPaymentReturn && clientSecret && stripeRef.current)) {
6523
- _context.next = 41;
6441
+ _context.next = 39;
6524
6442
  break;
6525
6443
  }
6526
- console.log('Detected payment redirect return, checking status');
6527
6444
  setLoading(true);
6528
- _context.prev = 6;
6445
+ _context.prev = 5;
6529
6446
  // Get stored payment context
6530
6447
  storedContext = localStorage.getItem('stripe_payment_context');
6531
6448
  if (storedContext) {
6532
- _context.next = 12;
6449
+ _context.next = 11;
6533
6450
  break;
6534
6451
  }
6535
6452
  setError('Payment context not found');
6536
6453
  setLoading(false);
6537
6454
  return _context.abrupt("return");
6538
- case 12:
6455
+ case 11:
6539
6456
  paymentContext = JSON.parse(storedContext);
6540
- _context.next = 15;
6457
+ _context.next = 14;
6541
6458
  return stripeRef.current.retrievePaymentIntent(clientSecret);
6542
- case 15:
6459
+ case 14:
6543
6460
  _yield$stripeRef$curr = _context.sent;
6544
6461
  paymentIntent = _yield$stripeRef$curr.paymentIntent;
6545
6462
  if (!((paymentIntent == null ? void 0 : paymentIntent.status) === 'succeeded')) {
6546
- _context.next = 29;
6463
+ _context.next = 27;
6547
6464
  break;
6548
6465
  }
6549
- console.log('Payment succeeded after redirect, continuing flow');
6550
6466
  // Clean up stored context
6551
6467
  localStorage.removeItem('stripe_payment_context');
6552
6468
  // Continue with the success flow using stored context
6553
6469
  paymentResponse = null;
6554
- _context.next = 23;
6470
+ _context.next = 21;
6555
6471
  return handlePaymentMiddleWare(null, {}, {
6556
6472
  reviewData: paymentContext.attributes,
6557
6473
  isFreeTickets: paymentContext.isFreeTickets,
@@ -6569,16 +6485,16 @@ var usePaymentRedirect = function usePaymentRedirect(_ref) {
6569
6485
  throw error;
6570
6486
  }
6571
6487
  });
6572
- case 23:
6488
+ case 21:
6573
6489
  // Complete the flow with cleanup and handleSubmit
6574
6490
  removeReferralKey();
6575
6491
  removeAdditionalConfigs();
6576
6492
  handleSubmit(paymentContext.values, paymentContext.formikHelpers, paymentContext.eventId, paymentContext.checkoutResponse, paymentContext.checkoutUpdateResponse, paymentResponse);
6577
6493
  // Clean URL parameters
6578
6494
  window.history.replaceState({}, document.title, window.location.pathname);
6579
- _context.next = 30;
6495
+ _context.next = 28;
6580
6496
  break;
6581
- case 29:
6497
+ case 27:
6582
6498
  if ((paymentIntent == null ? void 0 : paymentIntent.status) === 'requires_action') {
6583
6499
  setError('Payment requires additional action');
6584
6500
  // Clean up stored context and URL to prevent infinite loop
@@ -6590,26 +6506,26 @@ var usePaymentRedirect = function usePaymentRedirect(_ref) {
6590
6506
  localStorage.removeItem('stripe_payment_context');
6591
6507
  window.history.replaceState({}, document.title, window.location.pathname);
6592
6508
  }
6593
- case 30:
6594
- _context.next = 38;
6509
+ case 28:
6510
+ _context.next = 36;
6595
6511
  break;
6596
- case 32:
6597
- _context.prev = 32;
6598
- _context.t0 = _context["catch"](6);
6512
+ case 30:
6513
+ _context.prev = 30;
6514
+ _context.t0 = _context["catch"](5);
6599
6515
  console.error('Error handling payment return:', _context.t0);
6600
6516
  setError('Error processing payment return');
6601
6517
  // Clean up stored context and URL to prevent infinite loop
6602
6518
  localStorage.removeItem('stripe_payment_context');
6603
6519
  window.history.replaceState({}, document.title, window.location.pathname);
6604
- case 38:
6605
- _context.prev = 38;
6520
+ case 36:
6521
+ _context.prev = 36;
6606
6522
  setLoading(false);
6607
- return _context.finish(38);
6608
- case 41:
6523
+ return _context.finish(36);
6524
+ case 39:
6609
6525
  case "end":
6610
6526
  return _context.stop();
6611
6527
  }
6612
- }, _callee, null, [[6, 32, 38, 41]]);
6528
+ }, _callee, null, [[5, 30, 36, 39]]);
6613
6529
  }));
6614
6530
  return function handlePaymentReturn() {
6615
6531
  return _ref2.apply(this, arguments);
@@ -6945,7 +6861,7 @@ var EmailExistenceChecker = function EmailExistenceChecker(_ref4) {
6945
6861
  return null;
6946
6862
  };
6947
6863
  var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
6948
- var _reviewData$payment_m, _checkoutUpdateData$a, _checkoutUpdateData$a2, _reviewData$payment_m2, _checkoutUpdateData$a3, _checkoutUpdateData$a4, _checkoutUpdateData$a5;
6864
+ var _configs$addon_max_qu, _reviewData$payment_m, _checkoutUpdateData$a, _checkoutUpdateData$a2, _reviewData$payment_m2, _checkoutUpdateData$a3, _checkoutUpdateData$a4, _checkoutUpdateData$a5;
6949
6865
  var _ref6$data = _ref6.data,
6950
6866
  data = _ref6$data === void 0 ? [] : _ref6$data,
6951
6867
  _ref6$ticketHoldersFi = _ref6.ticketHoldersFields,
@@ -7181,6 +7097,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7181
7097
  var collectMandatoryBusinessCategory = configs == null ? void 0 : configs.collect_mandatory_business_category;
7182
7098
  var collectOptionalBusinessCategory = configs == null ? void 0 : configs.collect_optional_business_category;
7183
7099
  var eventHasAddons = configs == null ? void 0 : configs.has_add_on;
7100
+ var addonMaxQuantityGroups = (_configs$addon_max_qu = configs == null ? void 0 : configs.addon_max_quantity_groups) != null ? _configs$addon_max_qu : undefined;
7184
7101
  var hideBusinessCategoryField = !collectMandatoryBusinessCategory && !collectOptionalBusinessCategory;
7185
7102
  var _useState21 = React.useState(),
7186
7103
  pendingVerificationMessage = _useState21[0],
@@ -7391,7 +7308,6 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7391
7308
  });
7392
7309
  case 5:
7393
7310
  checkoutUpdateResponse = _context6.sent;
7394
- console.log('Stripe in [useEffect] fetchCheckoutUpdate', checkoutUpdateResponse);
7395
7311
  if (checkoutUpdateResponse.success) {
7396
7312
  checkoutAttributes = checkoutUpdateResponse.data.attributes;
7397
7313
  cartPriceBreakdown = _get(checkoutAttributes, 'cart_price_breakdown', {});
@@ -7399,23 +7315,22 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7399
7315
  hash: '',
7400
7316
  total: _get(cartPriceBreakdown, 'total', 0)
7401
7317
  }));
7402
- console.log('Stripe in [useEffect] fetchCheckoutUpdate | checkoutAttributes', checkoutAttributes);
7403
7318
  setCheckoutUpdateData(checkoutAttributes);
7404
7319
  onCheckoutUpdateSuccess(_extends({
7405
7320
  expires_at: expirationTime
7406
7321
  }, cartPriceBreakdown));
7407
7322
  }
7408
- _context6.next = 13;
7323
+ _context6.next = 12;
7409
7324
  break;
7410
- case 10:
7411
- _context6.prev = 10;
7325
+ case 9:
7326
+ _context6.prev = 9;
7412
7327
  _context6.t0 = _context6["catch"](2);
7413
7328
  console.error('Failed to fetch checkout update:', _context6.t0);
7414
- case 13:
7329
+ case 12:
7415
7330
  case "end":
7416
7331
  return _context6.stop();
7417
7332
  }
7418
- }, _callee6, null, [[2, 10]]);
7333
+ }, _callee6, null, [[2, 9]]);
7419
7334
  }));
7420
7335
  return function fetchCheckoutUpdate() {
7421
7336
  return _ref10.apply(this, arguments);
@@ -7661,9 +7576,6 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7661
7576
  return _ref12.apply(this, arguments);
7662
7577
  };
7663
7578
  }(), [eventId, isSinglePageCheckout, onCheckoutUpdateError, onCheckoutUpdateSuccess]);
7664
- console.log({
7665
- checkoutData: checkoutData
7666
- });
7667
7579
  var handleAddOnSelect = React.useCallback( /*#__PURE__*/function () {
7668
7580
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(selectedAddOns) {
7669
7581
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
@@ -7763,7 +7675,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7763
7675
  enableReinitialize: false,
7764
7676
  onSubmit: function () {
7765
7677
  var _onSubmit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(values, formikHelpers) {
7766
- var _checkoutBody$attribu2, _checkoutBody$attribu3, flagRequirePhoneLocal, holdersCount, hasHolderPhoneError, i, fieldName, value, userDataObj, profileData, profileSpecifiedData, checkoutBody, storedAddOnDataCapture, checkoutResponse, checkoutUpdateResponse, paymentResponse, _checkoutResponse$dat, hash, total, paymentDataResponse, _cart$, attributes, order_details, cart, _order_details$ticket, ticket, updatedOrderData, isFreeTickets, paymentMethod, paymentPlanAvailable, hasUnverifiedOrder, message, _e$response, event;
7678
+ var _checkoutBody$attribu2, _checkoutBody$attribu3, flagRequirePhoneLocal, holdersCount, hasHolderPhoneError, i, fieldName, value, userDataObj, profileData, profileSpecifiedData, checkoutBody, storedAddOnDataCapture, checkoutResponse, checkoutUpdateResponse, paymentResponse, _checkoutResponse$dat, hash, total, paymentDataResponse, _cart$, attributes, order_details, cart, _order_details$ticket, ticket, updatedOrderData, isFreeTickets, hasUnverifiedOrder, message, _e$response, event;
7767
7679
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
7768
7680
  while (1) switch (_context10.prev = _context10.next) {
7769
7681
  case 0:
@@ -7874,11 +7786,10 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7874
7786
  });
7875
7787
  case 38:
7876
7788
  checkoutUpdateResponse = _context10.sent;
7877
- console.log('Stripe checkoutUpdateResponse in billing-info-container', checkoutUpdateResponse);
7878
7789
  setCheckoutUpdateData(checkoutUpdateResponse.data.attributes);
7879
7790
  paymentResponse = null;
7880
7791
  if (!isSinglePageCheckout) {
7881
- _context10.next = 64;
7792
+ _context10.next = 59;
7882
7793
  break;
7883
7794
  }
7884
7795
  _checkoutResponse$dat = checkoutResponse.data.attributes, hash = _checkoutResponse$dat.hash, total = _checkoutResponse$dat.total;
@@ -7886,16 +7797,15 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7886
7797
  hash: hash,
7887
7798
  total: total
7888
7799
  }));
7889
- _context10.next = 47;
7800
+ _context10.next = 46;
7890
7801
  return getPaymentData(String(hash));
7891
- case 47:
7802
+ case 46:
7892
7803
  paymentDataResponse = _context10.sent;
7893
7804
  if (!paymentDataResponse.success) {
7894
- _context10.next = 64;
7805
+ _context10.next = 59;
7895
7806
  break;
7896
7807
  }
7897
7808
  attributes = paymentDataResponse.data.attributes;
7898
- console.log('Stripe confirmPayment success in billing-info-container');
7899
7809
  setReviewData(attributes);
7900
7810
  order_details = attributes.order_details, cart = attributes.cart;
7901
7811
  _order_details$ticket = order_details.tickets, ticket = _order_details$ticket[0];
@@ -7915,35 +7825,29 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7915
7825
  debt: (order_details == null ? void 0 : order_details.debt) || null,
7916
7826
  cost: ticket == null ? void 0 : ticket.cost
7917
7827
  };
7918
- isFreeTickets = !Number(total) && !Number(updatedOrderData.total) || !Number((updatedOrderData == null ? void 0 : updatedOrderData.pay_now) || 0);
7919
- paymentMethod = attributes.payment_method || {};
7920
- paymentPlanAvailable = paymentMethod.stripe_payment_plan_enabled;
7921
- console.log({
7922
- paymentPlanAvailable: paymentPlanAvailable
7923
- });
7924
- // Process payment using the hook
7925
- _context10.next = 61;
7828
+ isFreeTickets = !Number(total) && !Number(updatedOrderData.total) || !Number((updatedOrderData == null ? void 0 : updatedOrderData.pay_now) || 0); // Process payment using the hook
7829
+ _context10.next = 56;
7926
7830
  return processPayment(paymentDataResponse, values, formikHelpers, checkoutResponse, checkoutUpdateResponse, {
7927
7831
  attributes: attributes,
7928
7832
  isFreeTickets: isFreeTickets,
7929
7833
  updatedOrderData: updatedOrderData,
7930
7834
  eventId: eventId
7931
7835
  });
7932
- case 61:
7836
+ case 56:
7933
7837
  paymentResponse = _context10.sent;
7934
7838
  if (!(!paymentResponse && !isFreeTickets)) {
7935
- _context10.next = 64;
7839
+ _context10.next = 59;
7936
7840
  break;
7937
7841
  }
7938
7842
  return _context10.abrupt("return");
7939
- case 64:
7843
+ case 59:
7940
7844
  removeReferralKey();
7941
7845
  removeAdditionalConfigs();
7942
7846
  handleSubmit(values, formikHelpers, eventId, checkoutResponse, checkoutUpdateResponse, paymentResponse);
7943
- _context10.next = 77;
7847
+ _context10.next = 72;
7944
7848
  break;
7945
- case 69:
7946
- _context10.prev = 69;
7849
+ case 64:
7850
+ _context10.prev = 64;
7947
7851
  _context10.t1 = _context10["catch"](0);
7948
7852
  setLoading(false);
7949
7853
  onSubmitError(_context10.t1);
@@ -7972,15 +7876,15 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
7972
7876
  }
7973
7877
  // Keep form values intact - don't reset
7974
7878
  formikHelpers.setSubmitting(false);
7975
- case 77:
7976
- _context10.prev = 77;
7879
+ case 72:
7880
+ _context10.prev = 72;
7977
7881
  setLoading(false);
7978
- return _context10.finish(77);
7979
- case 80:
7882
+ return _context10.finish(72);
7883
+ case 75:
7980
7884
  case "end":
7981
7885
  return _context10.stop();
7982
7886
  }
7983
- }, _callee10, null, [[0, 69, 77, 80], [15, 23]]);
7887
+ }, _callee10, null, [[0, 64, 72, 75], [15, 23]]);
7984
7888
  }));
7985
7889
  function onSubmit(_x3, _x4) {
7986
7890
  return _onSubmit.apply(this, arguments);
@@ -8043,7 +7947,8 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
8043
7947
  eventId: eventId,
8044
7948
  addOnDataWithCustomFields: addOnDataWithCustomFields,
8045
7949
  configs: configs,
8046
- onAddOnSelect: onAddOnSelect
7950
+ onAddOnSelect: onAddOnSelect,
7951
+ addonMaxQuantityGroups: addonMaxQuantityGroups
8047
7952
  })) : !addOnsIncludedOnInvitation && includeAddons && !isSinglePageCheckout ? React__default.createElement(AddonsContainter, Object.assign({}, addonsProps != null ? addonsProps : {}, {
8048
7953
  addOnDataWithCustomFields: addOnDataWithCustomFields,
8049
7954
  configs: configs,
@@ -13989,7 +13894,6 @@ var RegistrationForm = function RegistrationForm(_ref) {
13989
13894
  _context3.prev = 25;
13990
13895
  _context3.t0 = _context3["catch"](1);
13991
13896
  if (axios.isAxiosError(_context3.t0)) {
13992
- console.log(_context3.t0);
13993
13897
  _errorMessage3 = _get(_context3.t0, 'response.data.message') || 'Error';
13994
13898
  onRegisterAccountError(_context3.t0);
13995
13899
  setshowErrorModal(true);