feat: when opening a direct link tx whithout previously loading the dashboard would break ui
This commit is contained in:
parent
081421d76e
commit
485591aea2
@ -57,11 +57,12 @@ export const isNavLinkActive = link => {
|
||||
chainCompare = router.currentRoute.params.chain === link.route.params.chain
|
||||
}
|
||||
|
||||
if (chainCompare) {
|
||||
localStorage.setItem('selected_chain', link.route.params.chain)
|
||||
}
|
||||
|
||||
return matchedRoutes.some(route => {
|
||||
const actived = (route.name === resolveRoutedName && chainCompare) || route.meta.navActiveLink === resolveRoutedName
|
||||
if (actived) {
|
||||
localStorage.setItem('selected_chain', link.route.params.chain)
|
||||
}
|
||||
return actived
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user