fee locale formatting fix

This commit is contained in:
julian 2023-04-17 15:36:40 -06:00
parent 154ad80137
commit da8972e27b

View file

@ -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);