From 269fd7f0dad792b659da42f973cb05fc0cd83e06 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 29 Oct 2021 15:43:52 +0200 Subject: [PATCH] fix issue when displaying tx with new wallet --- .../com/sparrowwallet/sparrow/control/TransactionDiagram.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index a42b01d6..ee56dc0e 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -523,7 +523,7 @@ public class TransactionDiagram extends GridPane { private Wallet getToWallet(Payment payment) { for(Wallet openWallet : AppServices.get().getOpenWallets().keySet()) { - if(openWallet != walletTx.getWallet() && openWallet.isWalletAddress(payment.getAddress())) { + if(openWallet != walletTx.getWallet() && openWallet.isValid() && openWallet.isWalletAddress(payment.getAddress())) { return openWallet; } }