From fd171b5062f5b7dfad1a206d393e82606728feef Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 28 Oct 2023 11:44:48 -0400 Subject: [PATCH] fix place offer button with wrong trade currency --- .../haveno/desktop/main/offer/MutableOfferView.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferView.java b/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferView.java index 342819bae5..f7313adabf 100644 --- a/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferView.java +++ b/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferView.java @@ -698,15 +698,7 @@ public abstract class MutableOfferView> exten marketBasedPriceTextField.clear(); volumeTextField.clear(); triggerPriceInputTextField.clear(); - if (!CurrencyUtil.isTraditionalCurrency(newValue)) { - if (model.isShownAsBuyOffer()) { - placeOfferButton.updateText(Res.get("createOffer.placeOfferButtonCrypto", Res.get("shared.buy"), - model.getTradeCurrency().getCode())); - } else { - placeOfferButton.updateText(Res.get("createOffer.placeOfferButtonCrypto", Res.get("shared.sell"), - model.getTradeCurrency().getCode())); - } - } + initWithData(model.dataModel.direction, model.getTradeCurrency(), offerActionHandler); }; placeOfferCompletedListener = (o, oldValue, newValue) -> {