mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
Update BlueComponents.js
This commit is contained in:
parent
7dc62bdc75
commit
e5006de728
1 changed files with 3 additions and 1 deletions
|
@ -2342,10 +2342,12 @@ export class BlueBitcoinAmount extends Component {
|
|||
} else {
|
||||
text = `${parseInt(split[0], 10)}`;
|
||||
}
|
||||
|
||||
text = this.state.unit === BitcoinUnit.BTC ? text.replace(/[^0-9.]/g, '') : text.replace(/[^0-9]/g, '');
|
||||
|
||||
if (text.startsWith('.')) {
|
||||
text = '0.';
|
||||
}
|
||||
text = this.state.unit === BitcoinUnit.BTC ? text.replace(/[^0-9.]/g, '') : text.replace(/[^0-9]/g, '');
|
||||
} else if (this.state.unit === BitcoinUnit.LOCAL_CURRENCY) {
|
||||
text = text.replace(/,/gi, '');
|
||||
if (text.split('.').length > 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue