Browse Source

Refactoring

pull/7996/head
Thomas Kaul 2 weeks ago
parent
commit
150f2a8786
  1. 4
      apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts

4
apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts

@ -371,8 +371,8 @@ export class GfAccountDetailDialogComponent implements OnInit {
value: isNumber(netWorth) ? netWorth : netWorthInPercentage value: isNumber(netWorth) ? netWorth : netWorthInPercentage
}; };
}) })
.filter((item): item is LineChartItem => { .filter(({ value }): item is LineChartItem => {
return isNumber(item.value); return isNumber(value);
}); });
} else { } else {
this.historicalDataItems = this.accountBalances.map( this.historicalDataItems = this.accountBalances.map(

Loading…
Cancel
Save