Show decimal transactionCount and singular for 1 transaction (#327)

* Show decimal `transactionCount` and singular for 1 transaction

* Update changelog

Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>
This commit is contained in:
Ivo Valchev
2021-09-02 20:47:27 +02:00
committed by GitHub
parent 6a0cfb8f77
commit 01feead017
3 changed files with 17 additions and 2 deletions

View File

@@ -102,9 +102,10 @@
</div>
<div class="col-6 mb-3">
<gf-value
label="Transactions"
size="medium"
[isCurrency]="true"
[isCurrency]="false"
[isInteger]="true"
[label]="transactionCount === 1 ? 'Transaction' : 'Transactions'"
[locale]="data.locale"
[value]="transactionCount"
></gf-value>