Browse Source

FIX: Replace comas with spaces

zigzag
Marcos Rodriguez Vélez 6 years ago
parent
commit
604581c93f
  1. 2
      BlueComponents.js
  2. 2
      ios/BlueWallet/Info.plist
  3. 4
      loc/index.js
  4. 2
      screen/wallets/reorderWallets.js
  5. 2
      screen/wallets/selectWallet.js
  6. 2
      screen/wallets/transactions.js

2
BlueComponents.js

@ -1055,7 +1055,7 @@ export class WalletsCarousel extends Component {
color: '#fff',
}}
>
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit())}
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit(), true)}
</Text>
<Text style={{ backgroundColor: 'transparent' }} />
<Text

2
ios/BlueWallet/Info.plist

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

4
loc/index.js

@ -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()) : 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);
}
@ -129,7 +129,7 @@ strings.formatBalanceWithoutSuffix = (balance, toUnit, withFormatting = false) =
const value = new BigNumber(balance).dividedBy(100000000).toFixed(8);
return removeTrailingZeros(value);
} else if (toUnit === BitcoinUnit.SATS) {
return withFormatting ? new Intl.NumberFormat().format(balance) : balance;
return withFormatting ? new Intl.NumberFormat().format(balance).replace(',', ' ') : balance;
} else if (toUnit === BitcoinUnit.LOCAL_CURRENCY) {
return currency.satoshiToLocalCurrency(balance);
}

2
screen/wallets/reorderWallets.js

@ -151,7 +151,7 @@ export default class ReorderWallets extends Component {
color: '#fff',
}}
>
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit())}
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit(), true)}
</Text>
<Text style={{ backgroundColor: 'transparent' }} />
<Text

2
screen/wallets/selectWallet.js

@ -126,7 +126,7 @@ export default class SelectWallet extends Component {
color: '#fff',
}}
>
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit())}
{loc.formatBalance(Number(item.getBalance()), item.getPreferredBalanceUnit(), true)}
</Text>
<Text style={{ backgroundColor: 'transparent' }} />
<Text

2
screen/wallets/transactions.js

@ -236,7 +236,7 @@ export default class WalletTransactions extends Component {
color: '#fff',
}}
>
{loc.formatBalance(this.state.wallet.getBalance(), this.state.wallet.getPreferredBalanceUnit()).toString()}
{loc.formatBalance(this.state.wallet.getBalance(), this.state.wallet.getPreferredBalanceUnit(), true).toString()}
</Text>
</TouchableOpacity>
<Text style={{ backgroundColor: 'transparent' }} />

Loading…
Cancel
Save