mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Use equals
This commit is contained in:
parent
b00cbe846f
commit
a64404ef5a
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
|
|||
PaymentAccount lastSelectedPaymentAccount = getPreselectedPaymentAccount();
|
||||
if (lastSelectedPaymentAccount != null &&
|
||||
user.getPaymentAccounts() != null &&
|
||||
user.getPaymentAccounts().stream().anyMatch(paymentAccount -> paymentAccount.getId() == lastSelectedPaymentAccount.getId())) {
|
||||
user.getPaymentAccounts().stream().anyMatch(paymentAccount -> paymentAccount.getId().equals(lastSelectedPaymentAccount.getId()))) {
|
||||
account = lastSelectedPaymentAccount;
|
||||
} else {
|
||||
account = user.findFirstPaymentAccountWithCurrency(tradeCurrency);
|
||||
|
|
Loading…
Add table
Reference in a new issue