From f1ed5f3a9539ffe670473890590c491d7aa7c211 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 1 Oct 2024 11:34:21 +0100 Subject: [PATCH 1/4] add job title character length reduced to 80 --- src/components/AddJob/settings.js | 2 +- src/components/jobPopout/EditJobPopoutNew.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AddJob/settings.js b/src/components/AddJob/settings.js index 3c784ae..6ad8942 100644 --- a/src/components/AddJob/settings.js +++ b/src/components/AddJob/settings.js @@ -51,7 +51,7 @@ const validationSchema = Yup.object().shape({ .required("Price is required"), title: Yup.string() .min(5, "Minimum 5 characters") - .max(149, "Maximum 149 characters") + .max(80, "Maximum 80 characters") .required("Title is required"), description: Yup.string() .min(5, "Minimum 5 characters") diff --git a/src/components/jobPopout/EditJobPopoutNew.jsx b/src/components/jobPopout/EditJobPopoutNew.jsx index c11fd31..a8c1aea 100644 --- a/src/components/jobPopout/EditJobPopoutNew.jsx +++ b/src/components/jobPopout/EditJobPopoutNew.jsx @@ -28,7 +28,7 @@ const validationSchema = Yup.object().shape({ .required("Price is required"), title: Yup.string() .min(5, "Minimum 5 characters") - .max(149, "Maximum 149 characters") + .max(80, "Maximum 80 characters") .required("Title is required"), description: Yup.string() .min(5, "Minimum 5 characters") From 3992ab696c5bc89b8fc5d99ceadcf6ec65d5e1b4 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 1 Oct 2024 11:34:41 +0100 Subject: [PATCH 2/4] add job title character length reduced to 80 --- src/components/jobPopout/EditJobPopout.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/jobPopout/EditJobPopout.jsx b/src/components/jobPopout/EditJobPopout.jsx index f548ccf..ccbf83e 100644 --- a/src/components/jobPopout/EditJobPopout.jsx +++ b/src/components/jobPopout/EditJobPopout.jsx @@ -27,7 +27,7 @@ const validationSchema = Yup.object().shape({ .required("Price is required"), title: Yup.string() .min(5, "Minimum 5 characters") - .max(149, "Maximum 149 characters") + .max(80, "Maximum 80 characters") .required("Title is required"), description: Yup.string() .min(5, "Minimum 5 characters") From d31005c1ceb8915ca0ab9a191d2669e7d0cd479b Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 1 Oct 2024 17:06:46 +0100 Subject: [PATCH 3/4] 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); From 094ba4fde803c7d87470dc7a57f98423121268ce Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 1 Oct 2024 18:13:45 +0100 Subject: [PATCH 4/4] bug fixed --- 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 7742b70..fb41a86 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 && res?.data?.internal_return > 0) { + if (res.status === 200 && res?.data?.internal_return >= 0) { setMsgSuccess(true); setMail(""); setValue(false);