Skip to content
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(surveys): Fix survey prop naming #18225

Merged
merged 3 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/src/lib/taxonomy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -797,16 +797,16 @@ export function getKeyMapping(
data.description = `${data.description} Data from the first time this user was seen.`
}
return data
} else if (value.startsWith('$survey_response/')) {
const surveyId = value.replace(/^\$survey_response\//, '')
} else if (value.startsWith('$survey_responded/')) {
const surveyId = value.replace(/^\$survey_responded\//, '')
if (surveyId) {
return {
label: `Survey Responded: ${surveyId}`,
description: `Whether the user responded to survey with ID: "${surveyId}".`,
}
}
} else if (value.startsWith('$survey_dismiss/')) {
const surveyId = value.replace(/^\$survey_dismiss\//, '')
} else if (value.startsWith('$survey_dismissed/')) {
const surveyId = value.replace(/^\$survey_dismissed\//, '')
if (surveyId) {
return {
label: `Survey Dismissed: ${surveyId}`,
Expand Down
Loading