history: fix search filter not working when there is a pending transaction

This commit is contained in:
rating89us 2020-07-08 15:01:19 +02:00 committed by GitHub
parent 596b71b293
commit d37c4ddef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1394,7 +1394,7 @@ Rectangle {
txs.push(item);
} else if(item.address !== "" && item.address.toLowerCase().startsWith(root.sortSearchString.toLowerCase())){
txs.push(item);
} else if(item.blockheight.toString().startsWith(root.sortSearchString)) {
} else if(typeof item.blockheight !== "undefined" && item.blockheight.toString().startsWith(root.sortSearchString)) {
txs.push(item);
} else if(item.tx_note.toLowerCase().indexOf(root.sortSearchString.toLowerCase()) !== -1) {
txs.push(item);