diff --git a/src/popup/index.js b/src/popup/index.js index 8cdf505..f131040 100644 --- a/src/popup/index.js +++ b/src/popup/index.js @@ -86,6 +86,15 @@ async function init() { } $("btn-settings").addEventListener("click", () => { + if ( + !document + .getElementById("view-settings") + .classList.contains("hidden") + ) { + renderWalletList(); + showView("main"); + return; + } $("settings-rpc").value = state.rpcUrl; $("settings-blockscout").value = state.blockscoutUrl; settings.renderSiteLists();