Use selected currency in app-amount component

This commit is contained in:
Mononaut
2023-01-16 11:05:30 -06:00
parent ff1a0b3381
commit 256cbfca59
3 changed files with 13 additions and 4 deletions

View File

@@ -1 +1 @@
<span class="green-color">{{ (conversions$ | async)[currency] * value / 100000000 | fiatCurrency : digitsInfo : currency }}</span>
<span class="green-color" *ngIf="(conversions$ | async) as conversions">{{ (conversions ? conversions[currency] : 0) * value / 100000000 | fiatCurrency : digitsInfo : currency }}</span>