Skip to content

Commit

Permalink
Ensure case-insensitive email verification for leaving organization
Browse files Browse the repository at this point in the history
  • Loading branch information
raggettii committed Dec 9, 2024
1 parent 43ec4b2 commit da0b9c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit da0b9c0

Please sign in to comment.