diff --git a/src/views/OperationsModule/OperationComponents/TotEdit.jsx b/src/views/OperationsModule/OperationComponents/TotEdit.jsx index b0111f06..54073288 100644 --- a/src/views/OperationsModule/OperationComponents/TotEdit.jsx +++ b/src/views/OperationsModule/OperationComponents/TotEdit.jsx @@ -300,16 +300,7 @@ const TotEdit = (props) => { "End date must be greater than or equal to start date" ); }), - trainer_1: Yup.string().required("Trainer 1 is required"), - trainer_2: Yup.string() - .required("Trainer 2 is required") - .test("not-same", "Trainers must be different", function (trainer2) { - const trainer1 = this.resolve(Yup.ref("trainer_1")); - return trainer1 !== trainer2; - }), - email: Yup.string() - .email("Invalid email format") - .required("Email is required"), + trainer_1: Yup.string().required("Trainer 1 is required") }); const deleteEntry = async () => {