Rename minAmount to minAmountAsCoin

This commit is contained in:
Manfred Karrer 2019-02-13 16:20:18 -05:00
parent 40a6f99dc7
commit 8134229250
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -732,10 +732,10 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
InputValidator.ValidationResult result = isBtcInputValid(minAmount.get());
minAmountValidationResult.set(result);
if (result.isValid) {
Coin minAmount = dataModel.getMinAmount().get();
syncMinAmountWithAmount = minAmount != null && minAmount.equals(dataModel.getAmount().get());
Coin minAmountAsCoin = dataModel.getMinAmount().get();
syncMinAmountWithAmount = minAmountAsCoin != null && minAmountAsCoin.equals(dataModel.getAmount().get());
setMinAmountToModel();
this.minAmount.set(btcFormatter.formatCoin(minAmount));
this.minAmount.set(btcFormatter.formatCoin(minAmountAsCoin));
if (!dataModel.isMinAmountLessOrEqualAmount()) {
this.amount.set(this.minAmount.get());