diff --git a/src/client/modules/Investments/EYBLeads/transformers.js b/src/client/modules/Investments/EYBLeads/transformers.js index 96d54389bb..0be2367bd9 100644 --- a/src/client/modules/Investments/EYBLeads/transformers.js +++ b/src/client/modules/Investments/EYBLeads/transformers.js @@ -79,7 +79,7 @@ export const transformLeadToListItem = ({ { label: 'Estimated spend', value: spend }, { label: 'Location of company headquarters', - value: address.country.name ? address.country.name : '', + value: address?.country?.name ? address?.country?.name : '', }, { label: 'Sector', value: sector ? sector.name : '' }, { diff --git a/test/functional/cypress/specs/investments/eyb-leads-spec.js b/test/functional/cypress/specs/investments/eyb-leads-spec.js index 4216979cf1..9e0fb41e82 100644 --- a/test/functional/cypress/specs/investments/eyb-leads-spec.js +++ b/test/functional/cypress/specs/investments/eyb-leads-spec.js @@ -267,6 +267,10 @@ describe('EYB leads collection page', () => { `Submitted to EYB ${formatDate(eybLead.triage_created, DATE_FORMAT_COMPACT)}` ) .should('contain', `Estimated spend ${eybLead.spend}`) + .should( + 'contain', + `Location of company headquarters ${eybLead.address.country.name}` + ) .should('contain', `Sector ${eybLead.sector.name}`) .should( 'contain',