diff --git a/frontend/src/app/Views/dashboard/dashboard.component.html b/frontend/src/app/Views/dashboard/dashboard.component.html index 20376c1..ce7401d 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.html +++ b/frontend/src/app/Views/dashboard/dashboard.component.html @@ -25,7 +25,7 @@ - ISIN + ISIN/Symbol {{ element.isin }} diff --git a/frontend/src/app/Views/dashboard/dashboard.component.ts b/frontend/src/app/Views/dashboard/dashboard.component.ts index 2cdaaeb..e25b8a6 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.ts +++ b/frontend/src/app/Views/dashboard/dashboard.component.ts @@ -53,7 +53,7 @@ export class DashboardComponent implements OnInit { var data = JSON.parse(response); this.depotCost = 0; for (let i = 0; i < data.data.length; i++) { - this.depotCost += data.data[i].price; + this.depotCost += data.data[i].price * data.data[i].count; TRANSACTION_DATA.push({ comment: data.data[i].comment, isin: data.data[i].isin, @@ -98,7 +98,7 @@ export class DashboardComponent implements OnInit { var data = JSON.parse(response); this.depotCost = 0; for (let i = 0; i < data.data.length; i++) { - this.depotCost += data.data[i].price; + this.depotCost += data.data[i].price * data.data[i].count; TRANSACTION_DATA.push({ comment: data.data[i].comment, isin: data.data[i].isin, diff --git a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.html b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.html index c3e31ee..bb67392 100644 --- a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.html +++ b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.html @@ -45,7 +45,7 @@ />
- +
- +