Skip to content

Commit

Permalink
fixes routing to topic intro pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrothwell committed Oct 3, 2024
1 parent 266aa0c commit a34e6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useRouting.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function useRouting() {
if (import.meta.env.VITE_DEBUG == 'true') console.log('routeApp')

const MainStore = useMainStore();
if (!MainStore.currentAddress && MainStore.currentTopic == 'voting'){
if (!MainStore.currentAddress && MainStore.currentTopic){
if (import.meta.env.VITE_DEBUG) console.log('routeApp routing to topic because MainStore.currentTopic:', MainStore.currentTopic);
if (MainStore.currentLang) {
router.replace({ name: 'topic', params: { topic: MainStore.currentTopic }, query: { lang: MainStore.currentLang } });
Expand Down

0 comments on commit a34e6eb

Please sign in to comment.