Merge pull request #2996

d37c4dd history: fix search filter not working when there is a pending transaction (rating89us)
This commit is contained in:
luigi1111 2020-07-08 13:56:35 -05:00
commit 38c3534ead
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

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);