From 1f3784f804be7e03b4d1b858ec511cfe77d0974d Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 10 Jun 2020 22:38:48 +0300 Subject: [PATCH] fix cv input validation relates #194 --- .../src/components/application/NonlinearStepper/GeneralInfo.js | 2 +- client/src/utils/application/nLinearStepperValidation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/application/NonlinearStepper/GeneralInfo.js b/client/src/components/application/NonlinearStepper/GeneralInfo.js index c5fbbc1..fc4dabb 100644 --- a/client/src/components/application/NonlinearStepper/GeneralInfo.js +++ b/client/src/components/application/NonlinearStepper/GeneralInfo.js @@ -165,7 +165,7 @@ const GeneralInfos = ({ handleFormInput, formValues, errorMsg }) => { onChange={handleFormInput} isError={ errorMsg.includes('Insert Your Cv Link first') || - errorMsg.includes('Enter correct url!') + errorMsg.includes('Enter a valid CV URL!') } /> diff --git a/client/src/utils/application/nLinearStepperValidation.js b/client/src/utils/application/nLinearStepperValidation.js index ce0f691..f713a66 100644 --- a/client/src/utils/application/nLinearStepperValidation.js +++ b/client/src/utils/application/nLinearStepperValidation.js @@ -34,7 +34,7 @@ const generalInfosSchema = yup.object().shape({ cvLink: yup .string() .required(`Insert Your Cv Link first`) - .url('Enter a valid URL!') + .url('Enter a valid CV URL!') .trim(), });