We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb4eeba + 4a7f622 commit 497c17cCopy full SHA for 497c17c
src/App.vue
@@ -154,7 +154,10 @@ async function created() {
154
initResults.push(await store.fetchCurrentBikeTag())
155
156
if (game && routeIsHome) {
157
- const tagnumber = parseInt(router.currentRoute.value.path.split('/')[1]) ?? undefined
+ const tagnumber =
158
+ router.currentRoute.value.path.length > 1
159
+ ? parseInt(router.currentRoute.value.path.split('/')[1])
160
+ : undefined
161
const params = { tagnumber }
162
await router.push({ name: 'Home', params })
163
}
0 commit comments