From 0af53513c8f300e31d6986755b27148e78d6f99a Mon Sep 17 00:00:00 2001 From: raggettii <22bsm029@iiitdmj.ac.in> Date: Tue, 10 Dec 2024 02:05:48 +0530 Subject: [PATCH] Fixed: issue-#1873 --- .../LeaveOrganization/LeaveOrganization.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx b/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx index aca3fddbcd..ecfdc6f99c 100644 --- a/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx +++ b/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx @@ -13,21 +13,12 @@ const LeaveOrganization = (): JSX.Element => { const userEmail = getItem('Talawa-admin', 'email'); const userId = getItem('Talawa-admin', 'userId'); - // console.log(`here is email -${userEmail}-`) - - // console.log(`here is user id -${userId}-`) - const [email, setEmail] = useState(''); const [error, setError] = useState(''); const [loading, setLoading] = useState(false); const [showModal, setShowModal] = useState(false); const [verificationStep, setVerificationStep] = useState(false); - // console.log(`email from input -${email}-`) - // const trimmedUserId = JSON.parse(userId)?.trim(); - - // console.log(`here is trimmed user id ${trimmedUserId}`) - const { data: orgData, loading: orgLoading, @@ -58,11 +49,6 @@ const LeaveOrganization = (): JSX.Element => { }; const handleVerifyAndLeave = (): void => { - // const trimmedEmail = email.trim(); - // console.log(`here is trimmed email from input ${trimmedEmail}`) - // const trimmedUserEmail = JSON.parse(userEmail)?.trim(); - // console.log(`here is trimmed email from local storage ${trimmedUserEmail}`) - if (email === userEmail) { handleLeaveOrganization(); } else {