mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
rename success rate label (#2055)
* rename success rate label * move successRate quote to the recommended section --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
6cc9f4f757
commit
bcbc7ee130
2 changed files with 12 additions and 1 deletions
|
@ -16,7 +16,7 @@ extension RecommendationTitle on ProviderRecommendation {
|
||||||
case ProviderRecommendation.lowKyc:
|
case ProviderRecommendation.lowKyc:
|
||||||
return 'LOW KYC';
|
return 'LOW KYC';
|
||||||
case ProviderRecommendation.successRate:
|
case ProviderRecommendation.successRate:
|
||||||
return 'SUCCESS RATE';
|
return 'HIGHEST SUCCESS RATE';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,6 +415,17 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
|
||||||
return true;
|
return true;
|
||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
|
final List<Quote> successRateQuotes = validQuotes.where((element) =>
|
||||||
|
element.provider is OnRamperBuyProvider &&
|
||||||
|
element.recommendations.contains(ProviderRecommendation.successRate)
|
||||||
|
).toList();
|
||||||
|
|
||||||
|
for (final quote in successRateQuotes) {
|
||||||
|
if (!uniqueProviderQuotes.contains(quote)) {
|
||||||
|
uniqueProviderQuotes.add(quote);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sortedRecommendedQuotes.addAll(uniqueProviderQuotes);
|
sortedRecommendedQuotes.addAll(uniqueProviderQuotes);
|
||||||
|
|
||||||
sortedQuotes = ObservableList.of(
|
sortedQuotes = ObservableList.of(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue