Skip to content

Commit 1ced7e6

Browse files
committed
lint fix
1 parent ee4fb63 commit 1ced7e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/web/src/nuxt/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function injectAnalytics(props: Omit<AnalyticsProps, 'framework'> = {}): void {
2626
});
2727
const route = useRoute();
2828
pageview({
29-
route: route.matched?.length
29+
route: route.matched.length
3030
? route.matched[route.matched.length - 1]?.path
3131
: route.path,
3232
path: route.path,
@@ -35,7 +35,7 @@ function injectAnalytics(props: Omit<AnalyticsProps, 'framework'> = {}): void {
3535
// On navigation to a new page
3636
router.afterEach((to) => {
3737
pageview({
38-
route: to.matched?.length
38+
route: to.matched.length
3939
? to.matched[to.matched.length - 1]?.path
4040
: to.path,
4141
path: to.path,

0 commit comments

Comments
 (0)