Skip to content

Commit

Permalink
Use relationship counts to compute total number of vendors (#4275)
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking authored Oct 13, 2023
1 parent 84c0f59 commit 6e5e4a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The types of changes are:
- Updating the unflatten_dict util to accept flattened dict values [#4200](https://github.com/ethyca/fides/pull/4200)
- Minor CSS styling fixes for the consent modal [#4252](https://github.com/ethyca/fides/pull/4252)
- Additional styling fixes for issues caused by a CSS reset [#4268](https://github.com/ethyca/fides/pull/4268)
- Vendor count over-counting in TCF overlay [#4275](https://github.com/ethyca/fides/pull/4275)

## [2.21.0](https://github.com/ethyca/fides/compare/2.20.2...2.21.0)

Expand Down
8 changes: 3 additions & 5 deletions clients/fides-js/src/components/tcf/VendorInfoBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ const VendorInfoBanner = ({
tcf_vendor_legitimate_interests: legintVendors = [],
tcf_system_consents: consentSystems = [],
tcf_system_legitimate_interests: legintSystems = [],
tcf_vendor_relationships: vendorRelationships = [],
tcf_system_relationships: systemRelationships = [],
} = experience;

const total =
consentSystems.length +
consentVendors.length +
legintVendors.length +
legintSystems.length;
const total = vendorRelationships.length + systemRelationships.length;

const consent = consentSystems.length + consentVendors.length;

Expand Down

0 comments on commit 6e5e4a5

Please sign in to comment.