diff --git a/client/src/components/ProfileCard/helper.js b/client/src/components/ProfileCard/helper.js index 9bf5a08..45d1776 100644 --- a/client/src/components/ProfileCard/helper.js +++ b/client/src/components/ProfileCard/helper.js @@ -127,7 +127,9 @@ export function getUserCompanyAttributeDetails(profile) { } attributes = profile.attributes - .filter((attribute) => !primaryAttributeIds.includes(attribute.attributeId)) + .filter( + (attribute) => !primaryAttributeIds.includes(attribute.attribute.name) + ) .map((attribute) => ({ id: attribute.attributeId, name: attribute.attribute.name, diff --git a/client/src/lib/company-attributes.js b/client/src/lib/company-attributes.js index 608b6f1..7abfb00 100644 --- a/client/src/lib/company-attributes.js +++ b/client/src/lib/company-attributes.js @@ -72,7 +72,7 @@ export async function getCompanyAttributes(apiClient, cancelToken) { // Finally, we only need the company attributes attributes = attributes.filter((attribute) => { - if (primaryAttributeIds.includes(attribute.id)) { + if (primaryAttributeIds.includes(attribute.name)) { return false; }