From 90a55854efa10da88c066450332807ed47b4d8b5 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Fri, 17 Feb 2023 01:58:08 +0530 Subject: [PATCH] Fixed scroll to top not showing up on desktop view --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1b02298..4ed9f19 100644 --- a/index.html +++ b/index.html @@ -1014,7 +1014,7 @@ const floId = wildcards[0] if (floId && floCrypto.validateFloID(floId)) { render.transactions(floId).then(() => { - scrollToTopObserver.observe(getRef('transactions_hero_section')) + scrollToTopObserver.observe(getRef('transactions_list').firstElementChild) }) } else { notify('Invalid Flo ID', 'error') @@ -1327,7 +1327,7 @@ renderElem(getRef('queried_flo_address'), html`

`) } }) - // render transactions + // show spinner getRef('transactions_scroller').nextElementSibling.classList.remove('hide') getRef('transactions_scroller').classList.add('hide') getRef('transactions_list').innerHTML = ''; @@ -1337,6 +1337,7 @@ if (filter !== 'all') { allTransactions = allTransactions.filter(t => filter === 'sent' ? t.sender === queriedFloId : t.receiver === queriedFloId) } + // render transactions if (transactionsLazyLoader) { transactionsLazyLoader.update(allTransactions) } else {