fix issue when displaying tx with new wallet

This commit is contained in:
Craig Raw 2021-10-29 15:43:52 +02:00
parent f0a813d031
commit 269fd7f0da

View file

@ -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;
}
}