mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Check if the provider supportsFixedRate only if fixed rate is applied [skip ci]
This commit is contained in:
parent
a9f0466825
commit
8ff8cf38b8
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ abstract class ExchangeViewModelBase with Store {
|
|||
|
||||
final result = await Future.wait<double>(
|
||||
_tradeAvailableProviders
|
||||
.where((element) => element.supportsFixedRate)
|
||||
.where((element) => !isFixedRateMode || element.supportsFixedRate)
|
||||
.map((element) => element.calculateAmount(
|
||||
from: depositCurrency,
|
||||
to: receiveCurrency,
|
||||
|
|
Loading…
Reference in a new issue