diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 3bed39a0f..1752c20fc 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -802,11 +802,8 @@ export class PortfolioService { const stakeRewards = getSum( activities - .filter(({ SymbolProfile }) => { - return symbol === SymbolProfile.symbol; - }) - .filter(({ type }) => { - return type === 'STAKE'; + .filter(({ SymbolProfile, type }) => { + return symbol === SymbolProfile.symbol && type === 'STAKE'; }) .map(({ quantity }) => { return new Big(quantity); diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html index c49991951..ff4c0fc0b 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -215,7 +215,6 @@ } -