mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
CAKE-160 | added to format_amount.dart case when amount contains ',' symbol
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