mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
Fixed amount display bug
This commit is contained in:
parent
265f975cd1
commit
b023b93ad5
2 changed files with 10 additions and 4 deletions
|
@ -113,6 +113,8 @@ strings.formatBalanceWithoutSuffix = (balance, fromUnit, toUnit) => {
|
|||
if (toUnit === BitcoinUnit.BTC || toUnit === undefined) {
|
||||
return BTCUnits(balance, fromUnit)
|
||||
.to(BitcoinUnit.BTC)
|
||||
.value()
|
||||
.toFixed(8)
|
||||
.toString();
|
||||
} else if (toUnit === BitcoinUnit.SATS) {
|
||||
return String(
|
||||
|
|
|
@ -345,13 +345,17 @@ export default class WalletsList extends Component {
|
|||
containerStyle: { marginTop: 0 },
|
||||
}}
|
||||
hideChevron
|
||||
rightTitle={new BigNumber((rowData.item.value && rowData.item.value) || 0).dividedBy(100000000).toString()}
|
||||
rightTitle={new BigNumber((rowData.item.value && rowData.item.value) || 0)
|
||||
.dividedBy(100000000)
|
||||
.toFixed(8)
|
||||
.toString()}
|
||||
rightTitleStyle={{
|
||||
fontWeight: '600',
|
||||
fontSize: 16,
|
||||
color: rowData.item.value / 100000000 < 0 || rowData.item.type === 'paid_invoice'
|
||||
? BlueApp.settings.foregroundColor
|
||||
: '#37c0a1',
|
||||
color:
|
||||
rowData.item.value / 100000000 < 0 || rowData.item.type === 'paid_invoice'
|
||||
? BlueApp.settings.foregroundColor
|
||||
: '#37c0a1',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue