Fix wrong check to show BSQ swap as default for create offer

This commit is contained in:
Christoph Atteneder 2022-04-11 14:16:39 +02:00
parent 098ece2a87
commit 2055cc5c10
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -295,7 +295,7 @@ public abstract class OfferView extends ActivatableView<TabPane, Void> {
// 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 {