FIX: Restore satoshi suffix

This commit is contained in:
Marcos Rodriguez Vélez 2019-01-06 22:53:29 -05:00
parent 5a751617d3
commit 5d3de17763
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>221</string>
<string>222</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View file

@ -108,7 +108,7 @@ strings.formatBalance = (balance, toUnit, withFormatting = false) => {
return balance + ' ' + BitcoinUnit.BTC;
} else if (toUnit === BitcoinUnit.SATS) {
const value = new BigNumber(balance).multipliedBy(100000000);
return withFormatting ? new Intl.NumberFormat().format(value.toString()).replace(',', ' ') : value + ' ' + BitcoinUnit.SATS;
return (withFormatting ? new Intl.NumberFormat().format(value.toString()).replace(',', ' ') : value) + ' ' + BitcoinUnit.SATS;
} else if (toUnit === BitcoinUnit.LOCAL_CURRENCY) {
return currency.BTCToLocalCurrency(balance);
}