mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fee locale formatting fix
This commit is contained in:
parent
154ad80137
commit
da8972e27b
1 changed files with 4 additions and 1 deletions
|
@ -186,7 +186,10 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
late Amount _currentFee;
|
||||
|
||||
void _setCurrentFee(String fee, bool shouldSetState) {
|
||||
final value = Decimal.parse(fee).toAmount(fractionDigits: coin.decimals);
|
||||
final value = fee.contains(",")
|
||||
? Decimal.parse(fee.replaceFirst(",", "."))
|
||||
.toAmount(fractionDigits: coin.decimals)
|
||||
: Decimal.parse(fee).toAmount(fractionDigits: coin.decimals);
|
||||
|
||||
if (shouldSetState) {
|
||||
setState(() => _currentFee = value);
|
||||
|
|
Loading…
Reference in a new issue