Skip to content

Commit

Permalink
Merge branch 'develop' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
KenEucker committed Jan 24, 2024
2 parents fb4eeba + 4a7f622 commit 497c17c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ async function created() {
initResults.push(await store.fetchCurrentBikeTag())
if (game && routeIsHome) {
const tagnumber = parseInt(router.currentRoute.value.path.split('/')[1]) ?? undefined
const tagnumber =
router.currentRoute.value.path.length > 1
? parseInt(router.currentRoute.value.path.split('/')[1])
: undefined
const params = { tagnumber }
await router.push({ name: 'Home', params })
}
Expand Down

0 comments on commit 497c17c

Please sign in to comment.