From d37c4ddef2d7a9234e541a3fc0f0802e69706caf Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Wed, 8 Jul 2020 15:01:19 +0200 Subject: [PATCH] history: fix search filter not working when there is a pending transaction --- pages/History.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/History.qml b/pages/History.qml index 82d4abfb..e02256fe 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -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);