mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user