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();
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) -> {