Bugfix/support multiple accounts with the same name (#623)

* Support multiple accounts with the same name

* Update changelog
This commit is contained in:
Thomas Kaul
2022-01-10 21:23:47 +01:00
committed by GitHub
parent a83441b3ba
commit b2b3fde80e
4 changed files with 18 additions and 9 deletions

View File

@@ -162,10 +162,10 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
}
};
for (const [name, { current, original }] of Object.entries(
for (const [id, { current, name, original }] of Object.entries(
this.portfolioDetails.accounts
)) {
this.accounts[name] = {
this.accounts[id] = {
name,
value: aPeriod === 'original' ? original : current
};