Skip to content

Commit

Permalink
fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehor Podporinov authored and Yehor Podporinov committed Jun 13, 2024
1 parent 8c75a48 commit f7e7a1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/Mor20Ecosystem/ContractCreationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ import { computed, ref, watch } from 'vue'
// TODO: remove the condition when the page will have a mainnet contract
onBeforeRouteUpdate(to => {
if (to.query.network === NETWORK_IDS.mainnet) return { name: ROUTE_NAMES.app }
if (to.query.network === NETWORK_IDS.mainnet)
return { ...to, name: ROUTE_NAMES.app }
})
const I18N_KEY_PREFIX = 'mor20-ecosystem.contract-creation-page'
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Mor20Ecosystem/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ import { computed, ref, watch } from 'vue'

// TODO: remove the condition when the page will have a mainnet contract
onBeforeRouteUpdate(to => {
if (to.query.network === NETWORK_IDS.mainnet) return { name: ROUTE_NAMES.app }
if (to.query.network === NETWORK_IDS.mainnet)
return { ...to, name: ROUTE_NAMES.app }
})

const I18N_KEY_PREFIX = 'mor20-ecosystem.main-page'
Expand Down

0 comments on commit f7e7a1d

Please sign in to comment.