diff --git a/desktop/src/main/java/bisq/desktop/main/offer/OfferDataModel.java b/desktop/src/main/java/bisq/desktop/main/offer/OfferDataModel.java index ef4535be09d..c40cbc4f3d2 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/OfferDataModel.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/OfferDataModel.java @@ -73,9 +73,10 @@ protected void updateBalance() { balance.set(tradeWalletBalance); } if (totalToPayAsCoin.get() != null) { - missingCoin.set(totalToPayAsCoin.get().subtract(balance.get())); - if (missingCoin.get().isNegative()) - missingCoin.set(Coin.ZERO); + Coin missing = totalToPayAsCoin.get().subtract(balance.get()); + if (missing.isNegative()) + missing = Coin.ZERO; + missingCoin.set(missing); } isBtcWalletFunded.set(isBalanceSufficient(balance.get()));