From ece1ef337d5c10d31902fdd21d0e97945064cdfa Mon Sep 17 00:00:00 2001 From: CaisManai Date: Fri, 20 Oct 2023 21:23:49 +0400 Subject: [PATCH] Keeping table behind spinner until loaded --- tools/walletextension/api/staticOG/javascript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/walletextension/api/staticOG/javascript.js b/tools/walletextension/api/staticOG/javascript.js index a4212355f2..5842b7418f 100644 --- a/tools/walletextension/api/staticOG/javascript.js +++ b/tools/walletextension/api/staticOG/javascript.js @@ -373,8 +373,6 @@ const initialize = async () => { accountsTable.style.display = "block" await populateAccountsTable(document, tableBody, userID) } - beginBox.style.visibility = "visible"; - spinner.style.visibility = "hidden"; // if accounts change we want to give user chance to add them to Obscuro window.ethereum.on('accountsChanged', async function (accounts) { @@ -389,6 +387,8 @@ const initialize = async () => { }); await displayConnectedAndJoinedSuccessfully() + beginBox.style.visibility = "visible"; + spinner.style.visibility = "hidden"; } })