From a740b7ea1fb14ed910463178a53b88ab488a2437 Mon Sep 17 00:00:00 2001 From: pkova Date: Thu, 22 Apr 2021 16:53:13 +0300 Subject: [PATCH] btc: round denominated amounts on invoice and sent screens --- pkg/btc-wallet/src/js/components/lib/balance.js | 1 + pkg/btc-wallet/src/js/components/lib/invoice.js | 8 +++++--- pkg/btc-wallet/src/js/components/lib/send.js | 3 ++- pkg/btc-wallet/src/js/components/lib/sent.js | 6 ++++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pkg/btc-wallet/src/js/components/lib/balance.js b/pkg/btc-wallet/src/js/components/lib/balance.js index 18787b892..ac85f2f95 100644 --- a/pkg/btc-wallet/src/js/components/lib/balance.js +++ b/pkg/btc-wallet/src/js/components/lib/balance.js @@ -61,6 +61,7 @@ export default class Balance extends Component { @@ -82,7 +84,7 @@ export default class Invoice extends Component { payee={payee} stopSending={stopSending} denomination={denomination} - denomAmount={denomAmount} + currencyRates={currencyRates} satsAmount={satsAmount} /> : {`$${denomAmount} ${denomination}`} + >{satsToCurrency(satsAmount, denomination, currencyRates)} : - {`$${denomAmount}`} + {satsToCurrency(satsAmount, denomination, currencyRates)}