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();
|
||||
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) -> {
|
||||
|
Loading…
Reference in New Issue
Block a user