fix: move banner creation after loadState() to read correct networkId
check / check (push) Successful in 13s
check / check (push) Successful in 13s
This commit is contained in:
1 parent
18e431ffcf
commit
d22c83e6dd
1 file changed
+3
-3
+3
-3
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user