fix place offer button with wrong trade currency
This commit is contained in:
parent
ed93096a4b
commit
fd171b5062
@ -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) -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user