mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-19 10:04:17 +01:00
Cw 1258 fix buy sell flow issues (#2754)
* update quote sorting logic for sell action * аix payment method selection
This commit is contained in:
@@ -436,7 +436,12 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
|
||||
return;
|
||||
}
|
||||
|
||||
validQuotes.sort((a, b) => a.rate.compareTo(b.rate));
|
||||
if (isBuyAction) {
|
||||
validQuotes.sort((a, b) => b.payout.compareTo(a.payout));
|
||||
} else {
|
||||
validQuotes.sort((a, b) => a.payout.compareTo(b.payout));
|
||||
}
|
||||
|
||||
|
||||
final Set<String> addedProviders = {};
|
||||
final List<Quote> uniqueProviderQuotes = validQuotes.where((element) {
|
||||
|
||||
Reference in New Issue
Block a user