Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Aug 1, 2024
2 parents c9fa673 + 4956745 commit 4a2f5f9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,16 @@ provide(refreshKey, getDbData);
onMounted(async () => {
const usePosthog = inject(usePosthogKey);
const id = await onPageLoad();
if (usePosthog && isAuthenticated.value) {
const profile = useUserStore();
posthog.identify(profile.data.uniqueHash);
} else if (usePosthog && id) {
posthog.identify(id);
if (usePosthog) {
const id = await onPageLoad();
if (isAuthenticated.value) {
const profile = useUserStore();
posthog.identify(profile.data.uniqueHash);
} else if (id) {
posthog.identify(id);
}
}
});
Expand Down

0 comments on commit 4a2f5f9

Please sign in to comment.