fixing bug with getting organizations
This commit is contained in:
@@ -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()
|
||||
})
|
||||
Reference in New Issue
Block a user