Skip to content

Commit

Permalink
Merge branch 'v3.2.4' of https://github.com/LiteFarmOrg/LiteFarm into…
Browse files Browse the repository at this point in the history
… v3.2.4
  • Loading branch information
smattingly committed Jul 28, 2022
2 parents d70f31e + 6258765 commit 4e6c103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/webapp/src/components/Profile/EditUser/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function PureEditUser({
return true;
} else {
return (
(value && !userFarmEmails.includes(value)) ||
(value && !userFarmEmails.includes(value.toLowerCase())) ||
t('INVITE_USER.ALREADY_EXISTING_EMAIL_ERROR')
);
}
Expand Down
4 changes: 3 additions & 1 deletion packages/webapp/src/containers/Profile/EditUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export default function EditUser({ history, match }) {
const userFarmsEntities = useSelector(userFarmEntitiesSelector);
const { user_id } = match.params;
const userFarm = userFarmsEntities[farm_id]?.[user_id];
const userFarmEmails = Object.values(userFarmsEntities[farm_id]).map((user) => user.email);
const userFarmEmails = Object.values(userFarmsEntities[farm_id]).map((user) =>
user.email.toLowerCase(),
);

const isCurrentUser = useMemo(() => {
return user_id === currentUserId;
Expand Down

0 comments on commit 4e6c103

Please sign in to comment.