From a51984b06bbbb7e52b9f1800b521e261db58c295 Mon Sep 17 00:00:00 2001 From: "Calum H. (IMB11)" Date: Thu, 17 Sep 2026 14:42:03 +0100 Subject: [PATCH] fix(app/frontend): fix posthog failed PageView --- apps/app-frontend/src/App.vue | 2 +- apps/app-frontend/src/helpers/analytics.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index 5faea7c84a..34a4bc883f 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -956,7 +956,7 @@ router.afterEach((to, from, failure) => { trackEvent('PageView', { path: to.path, fromPath: from.path, - failed: failure, + failed: !!failure, }) setTimeout(() => { debugStartup('Route loading release check', { diff --git a/apps/app-frontend/src/helpers/analytics.ts b/apps/app-frontend/src/helpers/analytics.ts index b3d2c0a291..9d911f657f 100644 --- a/apps/app-frontend/src/helpers/analytics.ts +++ b/apps/app-frontend/src/helpers/analytics.ts @@ -12,7 +12,7 @@ interface ProjectProperties extends InstanceProperties { type AnalyticsEventMap = { Launched: { version: string; dev: boolean } - PageView: { path: string; fromPath: string; failed: unknown } + PageView: { path: string; fromPath: string; failed: boolean } InstanceCreate: { source: string } InstanceCreateStart: { source: string } InstanceStart: InstanceProperties & { source: string }