tf-checkout-react 1.6.6-beta.24 → 1.6.6-beta.25
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 +19 -16
- 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 +19 -16
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forgotPasswordModal/index.tsx +6 -2
|
@@ -4173,41 +4173,44 @@ var ForgotPasswordModal = function ForgotPasswordModal(_ref) {
|
|
|
4173
4173
|
case 0:
|
|
4174
4174
|
email = _ref2.email;
|
|
4175
4175
|
if (!showSuccess) {
|
|
4176
|
-
_context.next =
|
|
4176
|
+
_context.next = 5;
|
|
4177
4177
|
break;
|
|
4178
4178
|
}
|
|
4179
|
+
setSuccessMessage(null);
|
|
4179
4180
|
onClose();
|
|
4180
4181
|
return _context.abrupt("return");
|
|
4181
|
-
case
|
|
4182
|
-
_context.prev =
|
|
4182
|
+
case 5:
|
|
4183
|
+
_context.prev = 5;
|
|
4183
4184
|
setLoading(true);
|
|
4184
|
-
_context.next =
|
|
4185
|
+
_context.next = 9;
|
|
4185
4186
|
return forgotPassword(email);
|
|
4186
|
-
case
|
|
4187
|
+
case 9:
|
|
4187
4188
|
_yield$forgotPassword = _context.sent;
|
|
4188
4189
|
data = _yield$forgotPassword.data;
|
|
4189
4190
|
onForgotPasswordSuccess(data);
|
|
4190
|
-
|
|
4191
|
-
if (data != null && data.success) {
|
|
4191
|
+
if (displaySuccessMessage && data != null && data.success) {
|
|
4192
4192
|
setSuccessMessage(data == null ? void 0 : data.message);
|
|
4193
4193
|
}
|
|
4194
|
-
|
|
4194
|
+
if (!displaySuccessMessage) {
|
|
4195
|
+
onClose();
|
|
4196
|
+
}
|
|
4197
|
+
_context.next = 19;
|
|
4195
4198
|
break;
|
|
4196
|
-
case
|
|
4197
|
-
_context.prev =
|
|
4198
|
-
_context.t0 = _context["catch"](
|
|
4199
|
+
case 16:
|
|
4200
|
+
_context.prev = 16;
|
|
4201
|
+
_context.t0 = _context["catch"](5);
|
|
4199
4202
|
if (axios.isAxiosError(_context.t0)) {
|
|
4200
4203
|
onForgotPasswordError(_context.t0);
|
|
4201
4204
|
}
|
|
4202
|
-
case
|
|
4203
|
-
_context.prev =
|
|
4205
|
+
case 19:
|
|
4206
|
+
_context.prev = 19;
|
|
4204
4207
|
setLoading(false);
|
|
4205
|
-
return _context.finish(
|
|
4206
|
-
case
|
|
4208
|
+
return _context.finish(19);
|
|
4209
|
+
case 22:
|
|
4207
4210
|
case "end":
|
|
4208
4211
|
return _context.stop();
|
|
4209
4212
|
}
|
|
4210
|
-
}, _callee, null, [[
|
|
4213
|
+
}, _callee, null, [[5, 16, 19, 22]]);
|
|
4211
4214
|
}));
|
|
4212
4215
|
return function onForgotPassword(_x) {
|
|
4213
4216
|
return _ref3.apply(this, arguments);
|