mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Merge branch '4.0.4-fixes' of github.com:cake-tech/cake_wallet_private into 4.0.4-fixes
This commit is contained in:
commit
37d3bf3fa9
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
String formatAmount(String amount) {
|
||||
if (!amount.contains('.')) {
|
||||
if ((!amount.contains('.'))&&(!amount.contains(','))) {
|
||||
return amount + '.00';
|
||||
} else if (amount.endsWith('.')) {
|
||||
} else if ((amount.endsWith('.'))||(amount.endsWith(','))) {
|
||||
return amount + '00';
|
||||
}
|
||||
return amount;
|
||||
|
|
Loading…
Reference in a new issue