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

Commit fbde749

Browse files
Merge pull request #612 from topcoder-platform/issue-85
Fix issue #85, isolate standard user attributes from company attributes.
2 parents b5d31dd + 1e21cc2 commit fbde749

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/src/components/ProfileCard/helper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export function getUserCompanyAttributeDetails(profile) {
127127
}
128128

129129
attributes = profile.attributes
130-
.filter((attribute) => !primaryAttributeIds.includes(attribute.attributeId))
130+
.filter(
131+
(attribute) => !primaryAttributeIds.includes(attribute.attribute.name)
132+
)
131133
.map((attribute) => ({
132134
id: attribute.attributeId,
133135
name: attribute.attribute.name,

client/src/lib/company-attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function getCompanyAttributes(apiClient, cancelToken) {
7272

7373
// Finally, we only need the company attributes
7474
attributes = attributes.filter((attribute) => {
75-
if (primaryAttributeIds.includes(attribute.id)) {
75+
if (primaryAttributeIds.includes(attribute.name)) {
7676
return false;
7777
}
7878

0 commit comments

Comments
 (0)