From d31005c1ceb8915ca0ab9a191d2669e7d0cd479b Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 1 Oct 2024 17:06:46 +0100 Subject: [PATCH] shows password reset error message if internal return is false --- src/components/AuthPages/ForgotPassword/index2.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AuthPages/ForgotPassword/index2.jsx b/src/components/AuthPages/ForgotPassword/index2.jsx index 76f0ac6..7742b70 100644 --- a/src/components/AuthPages/ForgotPassword/index2.jsx +++ b/src/components/AuthPages/ForgotPassword/index2.jsx @@ -63,7 +63,7 @@ export default function ForgotPassword() { setResetLoading(true); try { const res = await userApi.StartResetPassword(reqData); - if (res.status === 200) { + if (res.status === 200 && res?.data?.internal_return > 0) { setMsgSuccess(true); setMail(""); setValue(false);