Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Fix issue #85, isolate standard user attributes from company attributes. #612

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client/src/components/ProfileCard/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib/company-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down