Skip to content

Commit

Permalink
Use equals
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Jun 27, 2018
1 parent b00cbe8 commit a64404e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public boolean initWithData(OfferPayload.Direction direction, TradeCurrency trad
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);
Expand Down

0 comments on commit a64404e

Please sign in to comment.