Fix last few bugs

This commit is contained in:
Kevin Pauer
2022-05-10 21:41:59 +02:00
parent bed97bb3d6
commit bf99a78d44
3 changed files with 9 additions and 10 deletions

View File

@@ -33,7 +33,7 @@
<ng-container matColumnDef="current_price">
<th mat-header-cell *matHeaderCellDef>Price</th>
<td mat-cell *matCellDef="let element">
{{ element.current_price }}$
{{ element.current_price }}
</td>
</ng-container>
@@ -84,18 +84,18 @@
<div class="row">
<div class="col-6 col-sm-4">
<mat-icon>savings</mat-icon
><span class="money">{{ depotCurrentValue.toFixed(2) }}$</span>
><span class="money">{{ depotCurrentValue.toFixed(2) }}</span>
</div>
<div class="col-6 col-sm-4">
<mat-icon>paid</mat-icon
><span class="money">{{ depotCost.toFixed(2) }}$</span>
><span class="money">{{ depotCost.toFixed(2) }}</span>
</div>
<div class="col-6 col-sm-4">
<mat-icon>account_balance</mat-icon
><span
class="money"
[ngClass]="{ green: profit >= 0, red: profit < 0 }"
>{{ profit.toFixed(2) }}$</span
>{{ profit.toFixed(2) }}</span
>
</div>
</div>