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
|
@@ -4166,41 +4166,44 @@ var ForgotPasswordModal = function ForgotPasswordModal(_ref) {
|
|
|
4166
4166
|
case 0:
|
|
4167
4167
|
email = _ref2.email;
|
|
4168
4168
|
if (!showSuccess) {
|
|
4169
|
-
_context.next =
|
|
4169
|
+
_context.next = 5;
|
|
4170
4170
|
break;
|
|
4171
4171
|
}
|
|
4172
|
+
setSuccessMessage(null);
|
|
4172
4173
|
onClose();
|
|
4173
4174
|
return _context.abrupt("return");
|
|
4174
|
-
case
|
|
4175
|
-
_context.prev =
|
|
4175
|
+
case 5:
|
|
4176
|
+
_context.prev = 5;
|
|
4176
4177
|
setLoading(true);
|
|
4177
|
-
_context.next =
|
|
4178
|
+
_context.next = 9;
|
|
4178
4179
|
return forgotPassword(email);
|
|
4179
|
-
case
|
|
4180
|
+
case 9:
|
|
4180
4181
|
_yield$forgotPassword = _context.sent;
|
|
4181
4182
|
data = _yield$forgotPassword.data;
|
|
4182
4183
|
onForgotPasswordSuccess(data);
|
|
4183
|
-
|
|
4184
|
-
if (data != null && data.success) {
|
|
4184
|
+
if (displaySuccessMessage && data != null && data.success) {
|
|
4185
4185
|
setSuccessMessage(data == null ? void 0 : data.message);
|
|
4186
4186
|
}
|
|
4187
|
-
|
|
4187
|
+
if (!displaySuccessMessage) {
|
|
4188
|
+
onClose();
|
|
4189
|
+
}
|
|
4190
|
+
_context.next = 19;
|
|
4188
4191
|
break;
|
|
4189
|
-
case
|
|
4190
|
-
_context.prev =
|
|
4191
|
-
_context.t0 = _context["catch"](
|
|
4192
|
+
case 16:
|
|
4193
|
+
_context.prev = 16;
|
|
4194
|
+
_context.t0 = _context["catch"](5);
|
|
4192
4195
|
if (axios.isAxiosError(_context.t0)) {
|
|
4193
4196
|
onForgotPasswordError(_context.t0);
|
|
4194
4197
|
}
|
|
4195
|
-
case
|
|
4196
|
-
_context.prev =
|
|
4198
|
+
case 19:
|
|
4199
|
+
_context.prev = 19;
|
|
4197
4200
|
setLoading(false);
|
|
4198
|
-
return _context.finish(
|
|
4199
|
-
case
|
|
4201
|
+
return _context.finish(19);
|
|
4202
|
+
case 22:
|
|
4200
4203
|
case "end":
|
|
4201
4204
|
return _context.stop();
|
|
4202
4205
|
}
|
|
4203
|
-
}, _callee, null, [[
|
|
4206
|
+
}, _callee, null, [[5, 16, 19, 22]]);
|
|
4204
4207
|
}));
|
|
4205
4208
|
return function onForgotPassword(_x) {
|
|
4206
4209
|
return _ref3.apply(this, arguments);
|