From d411b4ddac2e5960a639b67f12629b6eb2b9e9c1 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 28 Apr 2021 20:27:04 +0530 Subject: [PATCH] Bug fix Fixed issue that causes no bonds found message to be displayed even when bonds are found --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0f805de..05de512 100644 --- a/index.html +++ b/index.html @@ -9936,17 +9936,18 @@ Bitcoin.Util = { for(child of getRef('bond_list').children){ if(child.dataset.floId.toLowerCase().includes(getRef('search_bonds').value.toLowerCase())){ child.classList.remove('hide-completely') - hiddenElements++ } else{ child.classList.add('hide-completely') + hiddenElements++ } } + console.log(hiddenElements, getRef('bond_list').children.length) if(hiddenElements === getRef('bond_list').children.length){ - getRef('bond_list__empty-state').classList.add('hide-completely') + getRef('bond_list__empty-state').classList.remove('hide-completely') } else{ - getRef('bond_list__empty-state').classList.remove('hide-completely') + getRef('bond_list__empty-state').classList.add('hide-completely') } }, 100) })