diff --git a/CHANGELOG.md b/CHANGELOG.md index 4269d69d4..199b0b383 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed an issue in the public access for portfolio sharing that exposed absolute values of the top holdings of ETFs - Fixed the time zone handling in the `api` test suite for deterministic execution in `UTC` ## 3.17.0 - 2026-06-26 diff --git a/apps/api/src/app/endpoints/public/public.controller.ts b/apps/api/src/app/endpoints/public/public.controller.ts index 6e025936d..d0e459f01 100644 --- a/apps/api/src/app/endpoints/public/public.controller.ts +++ b/apps/api/src/app/endpoints/public/public.controller.ts @@ -201,6 +201,11 @@ export class PublicController { portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH ? portfolioPosition.assetProfile.assetSubClassLabel : undefined, + holdings: portfolioPosition.assetProfile.holdings?.map( + ({ allocationInPercentage, name }) => { + return { allocationInPercentage, name }; + } + ), ...(hasDetails ? {} : {