fixing bug with getting organizations

This commit is contained in:
metacryst
2026-01-13 13:30:00 -06:00
parent 6efc5b6f97
commit b0953f44fa
5 changed files with 22 additions and 8 deletions

View File

@@ -82,8 +82,8 @@ async function getProfile() {
}
}
getProfile().then(async () => {
let path = "";
async function setCurrentNetwork() {
let path = ""
let defaultNetwork = window.profile.networks[0]
if(!selectedNetwork()) {
@@ -99,6 +99,15 @@ getProfile().then(async () => {
let json = await appData.json()
window.comalData = json
window.navigateTo(path)
return path
}
getProfile().then(async () => {
if(window.profile.networks.length > 0) {
let path = await setCurrentNetwork()
window.navigateTo(path)
}
Home()
})