From d22c83e6dd228458cd32df1992fe4bbf8e7487f6 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 11:35:56 -0800 Subject: [PATCH] fix: move banner creation after loadState() to read correct networkId --- src/popup/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/popup/index.js b/src/popup/index.js index 7f5d4b6..0a93870 100644 --- a/src/popup/index.js +++ b/src/popup/index.js @@ -172,6 +172,9 @@ function fallbackView() { } async function init() { + await loadState(); + applyTheme(state.theme); + const net = currentNetwork(); if (DEBUG || net.isTestnet) { const banner = document.createElement("div"); @@ -188,9 +191,6 @@ async function init() { document.body.prepend(banner); } - await loadState(); - applyTheme(state.theme); - // Auto-default active address if ( state.activeAddress === null &&