fix place offer button with wrong trade currency

This commit is contained in:
woodser 2023-10-28 11:44:48 -04:00
parent ed93096a4b
commit fd171b5062

View File

@ -698,15 +698,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
marketBasedPriceTextField.clear(); marketBasedPriceTextField.clear();
volumeTextField.clear(); volumeTextField.clear();
triggerPriceInputTextField.clear(); triggerPriceInputTextField.clear();
if (!CurrencyUtil.isTraditionalCurrency(newValue)) { initWithData(model.dataModel.direction, model.getTradeCurrency(), offerActionHandler);
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()));
}
}
}; };
placeOfferCompletedListener = (o, oldValue, newValue) -> { placeOfferCompletedListener = (o, oldValue, newValue) -> {