Skip to content

Commit

Permalink
Fix for email check not ignoring case
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Jan 30, 2024
1 parent 8537bf8 commit 23a8352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firecms/src/FireCMS3App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function FireCMS3ClientWithController({
if (userManagement.loading || authController.authLoading) return;
const user = authController.user;
if (!user) return;
return userManagement.users.find((fireCMSUser) => fireCMSUser.email === user?.email);
return userManagement.users.find((fireCMSUser) => fireCMSUser.email.toLowerCase() === user?.email?.toLowerCase());
},
[authController.authLoading, authController.user, userManagement.loading, userManagement.users]);

Expand Down

0 comments on commit 23a8352

Please sign in to comment.