Skip to content

Commit

Permalink
Merge pull request #1182 from ORCID/make-contact-roles-check-case-ins…
Browse files Browse the repository at this point in the history
…ensitive

make contact role check case insensitive
  • Loading branch information
bobcaprice committed May 13, 2024
2 parents 07e3565 + 5b132b6 commit 09f1f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/home/contact/contact-update.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class ContactUpdateComponent implements OnInit, OnDestroy {
title: contact.title,
email: contact.contactEmail,
roles: this.editForm!.controls['roles'].value.map((role: SFMemberContactRole) => {
if (contact.memberOrgRole?.includes(role.name)) {
if (contact.memberOrgRole?.map((role) => role.trim().toLowerCase()).includes(role.name.trim().toLowerCase())) {
return { ...role, selected: true }
} else {
return role
Expand Down

0 comments on commit 09f1f22

Please sign in to comment.