diff --git a/front-end/src/app/contacts/contact-list/contact-list.component.spec.ts b/front-end/src/app/contacts/contact-list/contact-list.component.spec.ts index e67939a84d..36588ed28d 100644 --- a/front-end/src/app/contacts/contact-list/contact-list.component.spec.ts +++ b/front-end/src/app/contacts/contact-list/contact-list.component.spec.ts @@ -66,7 +66,7 @@ describe('ContactListComponent', () => { it('#displayName returns the contact name', () => { let name = component.displayName(contact); - expect(name).toBe('Jane Smith'); + expect(name).toBe('Smith, Jane'); contact.type = ContactTypes.ORGANIZATION; name = component.displayName(contact); diff --git a/front-end/src/app/contacts/contact-list/contact-list.component.ts b/front-end/src/app/contacts/contact-list/contact-list.component.ts index f7db494134..0d8fbdfbef 100644 --- a/front-end/src/app/contacts/contact-list/contact-list.component.ts +++ b/front-end/src/app/contacts/contact-list/contact-list.component.ts @@ -52,7 +52,7 @@ export class ContactListComponent extends TableListBaseComponent { */ public displayName(item: Contact): string { if ([ContactTypes.INDIVIDUAL, ContactTypes.CANDIDATE].includes(item.type)) { - return `${item.first_name} ${item.last_name}`; + return `${item.last_name}, ${item.first_name}`; } else { return item.name || ''; }