Fix page path

This commit is contained in:
Pamela Chia committed 2023-06-26 09:48:57 +08:00
1 parent c6011e1d27
commit 9dbdfcce6c
1 file changed
+2 -2
+2 -2
View File
@@ -81,11 +81,11 @@ const sendActivity = (
...(projectRef && { projectRef }),
...(router.route.includes('/project/') &&
!projectRef && {
projectRef: router.route.split('/project/')[1].split('/')[0],
projectRef: router.asPath.split('/project/')[1].split('/')[0],
}),
...(orgId && { orgId }),
...(router.route.includes('/org/') &&
!orgId && { orgId: router.route.split('/org/')[1].split('/')[0] }),
!orgId && { orgId: router.asPath.split('/org/')[1].split('/')[0] }),
}
return post(`${API_URL}/telemetry/activity`, properties)
}