Skip to content

Commit

Permalink
Merge pull request #5564 from xyzmaker123/own-offer-popup
Browse files Browse the repository at this point in the history
Wrong information popup is shown when you click on own offer in offer book
  • Loading branch information
ripcurlx authored Jun 17, 2021
2 parents 1a59e92 + 1256c80 commit 6c4f97c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,10 @@ public void updateItem(final OfferBookListItem item, boolean empty) {
canTakeOfferResult = model.offerFilter.canTakeOffer(offer, false);
tableRow.setOpacity(canTakeOfferResult.isValid() || myOffer ? 1 : 0.4);

if (canTakeOfferResult.isValid()) {
if (myOffer) {
button.setDefaultButton(false);
tableRow.setOnMousePressed(null);
} else if (canTakeOfferResult.isValid()) {
// set first row button as default
button.setDefaultButton(getIndex() == 0);
tableRow.setOnMousePressed(null);
Expand Down

0 comments on commit 6c4f97c

Please sign in to comment.