From da0b9c08fba4f9ee22278104b41481365c0e51c0 Mon Sep 17 00:00:00 2001 From: raggettii <22bsm029@iiitdmj.ac.in> Date: Tue, 10 Dec 2024 02:48:18 +0530 Subject: [PATCH] Ensure case-insensitive email verification for leaving organization --- src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx b/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx index ecfdc6f99c..35adc73a03 100644 --- a/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx +++ b/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx @@ -49,7 +49,7 @@ const LeaveOrganization = (): JSX.Element => { }; const handleVerifyAndLeave = (): void => { - if (email === userEmail) { + if (email.trim().toLowerCase() === userEmail.toLowerCase()) { handleLeaveOrganization(); } else { setError('Verification failed: Email does not match.');