Merge pull request #5983 from xyzmaker123/5973-edit-offer-button-disability-fix

Prevent reset offer values after switch to same currency payment account
This commit is contained in:
Christoph Atteneder 2022-01-26 11:53:48 +01:00 committed by GitHub
commit 44b02b3cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,10 +329,6 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
void onPaymentAccountSelected(PaymentAccount paymentAccount) { void onPaymentAccountSelected(PaymentAccount paymentAccount) {
if (paymentAccount != null && !this.paymentAccount.equals(paymentAccount)) { if (paymentAccount != null && !this.paymentAccount.equals(paymentAccount)) {
volume.set(null);
minVolume.set(null);
price.set(null);
marketPriceMargin = 0;
preferences.setSelectedPaymentAccountForCreateOffer(paymentAccount); preferences.setSelectedPaymentAccountForCreateOffer(paymentAccount);
this.paymentAccount = paymentAccount; this.paymentAccount = paymentAccount;