mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-18 16:44:32 +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;
|
late Amount _currentFee;
|
||||||
|
|
||||||
void _setCurrentFee(String fee, bool shouldSetState) {
|
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) {
|
if (shouldSetState) {
|
||||||
setState(() => _currentFee = value);
|
setState(() => _currentFee = value);
|
||||||
|
|
Loading…
Reference in a new issue