fix: move banner creation after loadState() to read correct networkId
All checks were successful
check / check (push) Successful in 13s
All checks were successful
check / check (push) Successful in 13s
This commit is contained in:
@@ -172,6 +172,9 @@ function fallbackView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
|
await loadState();
|
||||||
|
applyTheme(state.theme);
|
||||||
|
|
||||||
const net = currentNetwork();
|
const net = currentNetwork();
|
||||||
if (DEBUG || net.isTestnet) {
|
if (DEBUG || net.isTestnet) {
|
||||||
const banner = document.createElement("div");
|
const banner = document.createElement("div");
|
||||||
@@ -188,9 +191,6 @@ async function init() {
|
|||||||
document.body.prepend(banner);
|
document.body.prepend(banner);
|
||||||
}
|
}
|
||||||
|
|
||||||
await loadState();
|
|
||||||
applyTheme(state.theme);
|
|
||||||
|
|
||||||
// Auto-default active address
|
// Auto-default active address
|
||||||
if (
|
if (
|
||||||
state.activeAddress === null &&
|
state.activeAddress === null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user