@stokr/components-library 2.3.41-beta.21 → 2.3.41-beta.22

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.
@@ -655,34 +655,40 @@ var HeaderHoClass = /*#__PURE__*/function (_Component) {
655
655
  },
656
656
  onFormSend: /*#__PURE__*/function () {
657
657
  var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref8) {
658
- var email;
658
+ var email, payload;
659
659
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
660
660
  while (1) switch (_context5.prev = _context5.next) {
661
661
  case 0:
662
662
  email = _ref8.email;
663
663
  _this2.clearPopupError();
664
664
  _this2.setIsActionLoading('forgot');
665
- _context5.prev = 3;
666
- _context5.next = 6;
667
- return (0, _auth.default)('forgotPass', {
665
+ payload = {
668
666
  email: email
669
- });
670
- case 6:
667
+ };
668
+ if (isResettingExpiredToken) {
669
+ console.log('isResettingExpiredToken: ', isResettingExpiredToken);
670
+ payload.ventureInvite = true;
671
+ }
672
+ console.log('payload obj: ', payload);
673
+ _context5.prev = 6;
674
+ _context5.next = 9;
675
+ return (0, _auth.default)('forgotPass', payload);
676
+ case 9:
671
677
  _this2.setPopupSuccess('forgot', "We sent a message to ".concat(email, " (you might need to check your junk or spam folder) \u2014 tap the link inside to create a new password."));
672
678
  _this2.setIsActionLoading(undefined);
673
- _context5.next = 15;
679
+ _context5.next = 18;
674
680
  break;
675
- case 10:
676
- _context5.prev = 10;
677
- _context5.t0 = _context5["catch"](3);
681
+ case 13:
682
+ _context5.prev = 13;
683
+ _context5.t0 = _context5["catch"](6);
678
684
  console.log(_context5.t0);
679
685
  _this2.setPopupError('forgot', 'This email is not registered.');
680
686
  _this2.setIsActionLoading(undefined);
681
- case 15:
687
+ case 18:
682
688
  case "end":
683
689
  return _context5.stop();
684
690
  }
685
- }, _callee5, null, [[3, 10]]);
691
+ }, _callee5, null, [[6, 13]]);
686
692
  }));
687
693
  return function (_x4) {
688
694
  return _ref9.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.41-beta.21",
3
+ "version": "2.3.41-beta.22",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",