Browse Source

Refactor rounding logic

pull/7199/head
Thomas Kaul 2 weeks ago
parent
commit
d3e564f149
  1. 12
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

12
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

@ -118,8 +118,10 @@
i18n i18n
size="medium" size="medium"
[class.text-danger]=" [class.text-danger]="
round(marketPriceMin, 2) === round(marketPrice, 2) && round(marketPriceMin, marketPriceMinPrecision) ===
round(marketPriceMax, 2) !== round(marketPriceMin, 2) round(marketPrice, marketPricePrecision) &&
round(marketPriceMax, marketPriceMaxPrecision) !==
round(marketPriceMin, marketPriceMinPrecision)
" "
[isCurrency]="true" [isCurrency]="true"
[locale]="data.locale" [locale]="data.locale"
@ -134,8 +136,10 @@
i18n i18n
size="medium" size="medium"
[class.text-success]=" [class.text-success]="
round(marketPriceMax, 2) === round(marketPrice, 2) && round(marketPriceMax, marketPriceMaxPrecision) ===
round(marketPriceMax, 2) !== round(marketPriceMin, 2) round(marketPrice, marketPricePrecision) &&
round(marketPriceMax, marketPriceMaxPrecision) !==
round(marketPriceMin, marketPriceMinPrecision)
" "
[isCurrency]="true" [isCurrency]="true"
[locale]="data.locale" [locale]="data.locale"

Loading…
Cancel
Save