aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2020-07-08 15:01:19 +0200
committerGitHub <noreply@github.com>2020-07-08 15:01:19 +0200
commitd37c4ddef2d7a9234e541a3fc0f0802e69706caf (patch)
treebe96650c367137c3a1d5f55a8d1c2ac9b0d5d89d
parent596b71b29378421d67d1c4660b3b872eec320805 (diff)
downloadmonzero-gui-d37c4ddef2d7a9234e541a3fc0f0802e69706caf.tar.gz
monzero-gui-d37c4ddef2d7a9234e541a3fc0f0802e69706caf.tar.xz
monzero-gui-d37c4ddef2d7a9234e541a3fc0f0802e69706caf.zip
history: fix search filter not working when there is a pending transaction
-rw-r--r--pages/History.qml2
1 files changed, 1 insertions, 1 deletions
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);