use floor() instead of round() to convert msat to sat in frontend (#2070)

* use floor() instead of round() to convert msat to sat in frontend
This commit is contained in:
Pavol Rusnak
2023-11-06 07:49:47 +01:00
committed by GitHub
parent 3e142fab0f
commit 1ab68e80b3
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ window.LNbits = {
currency: data.currency
}
newWallet.msat = data.balance_msat
newWallet.sat = Math.round(data.balance_msat / 1000)
newWallet.sat = Math.floor(data.balance_msat / 1000)
newWallet.fsat = new Intl.NumberFormat(window.LOCALE).format(
newWallet.sat
)