Skip to content

Commit

Permalink
fix: not displaying affiliations
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Sep 29, 2023
1 parent aae8fe6 commit bb44e66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const AffiliationManagerModal = ({ onClose, onSubmit, userId }) => {

const primaryAffiliation = useMemo(() => affiliations.find(({ isPrimary }) => isPrimary), [affiliations]);
const affiliationIds = useMemo(() => {
const excludePrimaryAffiliation = ({ isPrimary, id }) => {
return !isPrimary && id !== primaryAffiliation?.tenantId;
const excludePrimaryAffiliation = ({ id }) => {
return id !== primaryAffiliation?.tenantId;
};

return currentUserTenants.filter(excludePrimaryAffiliation).map(({ id }) => id);
Expand Down

0 comments on commit bb44e66

Please sign in to comment.