mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
Fixes
This commit is contained in:
@@ -137,7 +137,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
return;
|
||||
}
|
||||
|
||||
final _amount = double.parse(amount) ?? 0;
|
||||
final _amount = double.parse(amount.replaceAll(',', '.')) ?? 0;
|
||||
|
||||
provider
|
||||
.calculateAmount(
|
||||
@@ -160,7 +160,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
return;
|
||||
}
|
||||
|
||||
final _amount = double.parse(amount);
|
||||
final _amount = double.parse(amount.replaceAll(',', '.'));
|
||||
provider
|
||||
.calculateAmount(
|
||||
from: depositCurrency, to: receiveCurrency, amount: _amount,
|
||||
|
||||
Reference in New Issue
Block a user