From 9a0b5020025c4c12bd3bcd20a009c31b3886d38d Mon Sep 17 00:00:00 2001 From: Ananya Gupta <145869907+ananyag309@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:32:54 +0530 Subject: [PATCH] Update Contactus.jsx Signed-off-by: Ananya Gupta <145869907+ananyag309@users.noreply.github.com> --- client/src/component/Footers/Contactus.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/component/Footers/Contactus.jsx b/client/src/component/Footers/Contactus.jsx index cecbb0c..8e1c97f 100644 --- a/client/src/component/Footers/Contactus.jsx +++ b/client/src/component/Footers/Contactus.jsx @@ -33,8 +33,8 @@ function ContactUs(props) { } // Validate message - if (!message.trim()) { - toast.error("Please enter a valid message"); + if (!message.trim() || message.length < 5) { + toast.error("Please enter a valid message with at least 5 characters"); setIsSubmitting(false); return; }