mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Check if the provider supportsFixedRate only if fixed rate is applied [skip ci]
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user