Skip to content

Commit

Permalink
Fixed: issue-#1873
Browse files Browse the repository at this point in the history
  • Loading branch information
raggettii committed Dec 9, 2024
1 parent f28688d commit 0af5351
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0af5351

Please sign in to comment.