-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: posthog consistent event properties #440
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Playwright test resultsDetails Open report ↗︎ Skipped testsNo persona › tests/auth.test.ts › authenticate through Clerk UI |
for (const char of strippedMaybeKeyStage) { | ||
str += char; | ||
const startMatch = startKeyStageMap[str]; | ||
|
||
if (startMatch) { | ||
return startMatch; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could also do this by looping Object.entries
and comparing with startsWith
. Could be clearer for people familiar with functional programming. Could be less clear for people who aren't I suppose!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me and is approvable 👍
I would prefer to see a self-contained part of the analytics handling like this in its own file like keyStages.ts
rather than making helpers.ts
any longer, but it's a nit pick
Quality Gate passedIssues Measures |
🎉 This PR is included in version 1.18.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
How to test