From 2055cc5c104c6371880534d9e5980a9af74b193d Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Mon, 11 Apr 2022 14:16:39 +0200 Subject: [PATCH] Fix wrong check to show BSQ swap as default for create offer --- desktop/src/main/java/bisq/desktop/main/offer/OfferView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java b/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java index dc757f9fe8..a42f09f092 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java @@ -295,7 +295,7 @@ public abstract class OfferView extends ActivatableView { // CreateOffer and TakeOffer must not be cached by ViewLoader as we cannot use a view multiple times // in different graphs if ((paymentMethod != null && paymentMethod.isBsqSwap()) || - (paymentMethod == null && viewClass.isAssignableFrom(BsqOfferBookView.class))) { + (paymentMethod == null && viewClass.equals(BsqOfferBookView.class))) { view = viewLoader.load(BsqSwapCreateOfferView.class); ((BsqSwapCreateOfferView) view).initWithData(direction, offerActionHandler, payload); } else {