diff --git a/frontend/src/app/Services/bot.service.ts b/frontend/src/app/Services/bot.service.ts index 954cdc6..afe1618 100644 --- a/frontend/src/app/Services/bot.service.ts +++ b/frontend/src/app/Services/bot.service.ts @@ -102,17 +102,17 @@ export class BotService { /** * Function to delete a share - * @param {string} symbol + * @param {string} isin * @returns Observable */ - public deleteShare(symbol: string): Observable { + public deleteShare(isin: string): Observable { return this.http.delete(API_URL + 'share', { headers: new HttpHeaders({ 'Content-Type': 'application/json', Authorization: 'Bearer ' + this.tokenStorage.getToken(), }), body: { - symbol, + isin, }, }); } diff --git a/frontend/src/app/Views/dashboard/dashboard.component.html b/frontend/src/app/Views/dashboard/dashboard.component.html index 4c3fb73..20376c1 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.html +++ b/frontend/src/app/Views/dashboard/dashboard.component.html @@ -140,7 +140,7 @@ Price - {{ element.price }}$ + {{ element.price }}€ diff --git a/frontend/src/app/Views/dashboard/dashboard.component.ts b/frontend/src/app/Views/dashboard/dashboard.component.ts index 449e21e..2cdaaeb 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.ts +++ b/frontend/src/app/Views/dashboard/dashboard.component.ts @@ -63,7 +63,7 @@ export class DashboardComponent implements OnInit { }); } this.dataSourceTransactions = TRANSACTION_DATA; - this.profit = this.depotCurrentValue - this.depotCost; + this.profit = this.depotCurrentValue + this.depotCost; }); } diff --git a/frontend/src/app/Views/login/login.component.html b/frontend/src/app/Views/login/login.component.html index 0083425..5b6a96f 100644 --- a/frontend/src/app/Views/login/login.component.html +++ b/frontend/src/app/Views/login/login.component.html @@ -24,7 +24,7 @@ email #email="ngModel" /> -
+
Email is required
Email must be a valid email address diff --git a/frontend/src/app/Views/profile/profile.component.html b/frontend/src/app/Views/profile/profile.component.html index 5652f13..21c1ac9 100644 --- a/frontend/src/app/Views/profile/profile.component.html +++ b/frontend/src/app/Views/profile/profile.component.html @@ -64,13 +64,16 @@ Please enter a valid password @@ -79,12 +82,18 @@ Password is required +
+ Password does not match, make sure it is the same! +
+