Skip to content

Commit

Permalink
survey responded fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Oct 26, 2023
1 parent f58c633 commit 67c1713
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions frontend/src/lib/taxonomy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ 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}`,
Expand Down Expand Up @@ -826,14 +826,6 @@ export function getKeyMapping(
description: `The response value for the ${index}${suffix} question in the survey.`,
}
}
} 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('$feature/')) {
const featureFlagKey = value.replace(/^\$feature\//, '')
if (featureFlagKey) {
Expand Down

0 comments on commit 67c1713

Please sign in to comment.