fix no deposit filter applied to sell tab

This commit is contained in:
woodser 2024-12-20 05:23:12 -05:00
parent 7240b5f222
commit 389c5dddac

View file

@ -579,7 +579,10 @@ abstract class OfferBookViewModel extends ActivatableViewModel {
getCurrencyAndMethodPredicate(direction, selectedTradeCurrency).and(getOffersMatchingMyAccountsPredicate()) :
getCurrencyAndMethodPredicate(direction, selectedTradeCurrency);
predicate = predicate.and(offerBookListItem -> offerBookListItem.getOffer().isPrivateOffer() == showPrivateOffers);
// filter private offers
if (direction == OfferDirection.BUY) {
predicate = predicate.and(offerBookListItem -> offerBookListItem.getOffer().isPrivateOffer() == showPrivateOffers);
}
if (!filterText.isEmpty()) {