mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 13:13:36 +01:00
whitespace cleanup to MutableOfferViewModel.java
This commit is contained in:
parent
f401f72896
commit
c621bc17a6
@ -687,11 +687,9 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||
if (minAmount.get() != null)
|
||||
minAmountValidationResult.set(isXmrInputValid(minAmount.get()));
|
||||
} else if (amount.get() != null && xmrValidator.getMaxTradeLimit() != null && xmrValidator.getMaxTradeLimit().longValueExact() == OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.longValueExact()) {
|
||||
|
||||
if (Double.parseDouble(amount.get()) < HavenoUtils.atomicUnitsToXmr(Restrictions.getMinTradeAmount())){
|
||||
if (Double.parseDouble(amount.get()) < HavenoUtils.atomicUnitsToXmr(Restrictions.getMinTradeAmount())) {
|
||||
amountValidationResult.set(result);
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
amount.set(HavenoUtils.formatXmr(xmrValidator.getMaxTradeLimit()));
|
||||
boolean isBuy = dataModel.getDirection() == OfferDirection.BUY;
|
||||
new Popup().information(Res.get(isBuy ? "popup.warning.tradeLimitDueAccountAgeRestriction.buyer" : "popup.warning.tradeLimitDueAccountAgeRestriction.seller",
|
||||
@ -700,7 +698,6 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||
.width(900)
|
||||
.show();
|
||||
}
|
||||
|
||||
}
|
||||
// We want to trigger a recalculation of the volume
|
||||
UserThread.execute(() -> {
|
||||
|
Loading…
Reference in New Issue
Block a user