diff --git a/frontend/src/app/Views/dashboard/dashboard.component.ts b/frontend/src/app/Views/dashboard/dashboard.component.ts index 6f0ca76..0d1238b 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.ts +++ b/frontend/src/app/Views/dashboard/dashboard.component.ts @@ -99,7 +99,7 @@ export class DashboardComponent implements OnInit { this.dataSourceTransactions = TRANSACTION_DATA; //TODO move to helper service - this.profit -= this.depotCost; + this.profit += this.depotCost; }); } diff --git a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts index c76068c..8e67701 100644 --- a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts +++ b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts @@ -30,7 +30,7 @@ export class UserDialogComponent { this.data.isin, this.data.time, +this.data.count, - +this.data.price.toFixed(2) + +this.data.price.toFixed(2) * -1 ) .subscribe((data) => { console.log(data);