mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Merge pull request #5753 from jmacxx/fix_exception_enteroffer
Fix exception in offer entry UI
This commit is contained in:
commit
c9a6407582
@ -1156,7 +1156,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||
|
||||
long maxTradeLimit = dataModel.getMaxTradeLimit();
|
||||
Price price = dataModel.getPrice().get();
|
||||
if (price != null) {
|
||||
if (price != null && price.isPositive()) {
|
||||
if (dataModel.isUsingHalCashAccount())
|
||||
amount = CoinUtil.getAdjustedAmountForHalCash(amount, price, maxTradeLimit);
|
||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||
@ -1180,7 +1180,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||
|
||||
Price price = dataModel.getPrice().get();
|
||||
long maxTradeLimit = dataModel.getMaxTradeLimit();
|
||||
if (price != null) {
|
||||
if (price != null && price.isPositive()) {
|
||||
if (dataModel.isUsingHalCashAccount())
|
||||
minAmount = CoinUtil.getAdjustedAmountForHalCash(minAmount, price, maxTradeLimit);
|
||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||
|
Loading…
Reference in New Issue
Block a user