mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-29 01:38:39 -04:00
fix place offer button with wrong trade currency
This commit is contained in:
parent
ed93096a4b
commit
fd171b5062
1 changed files with 1 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue