diff --git a/frontend/src/lib/taxonomy.tsx b/frontend/src/lib/taxonomy.tsx index afa765e238a17..b14a3ac55423e 100644 --- a/frontend/src/lib/taxonomy.tsx +++ b/frontend/src/lib/taxonomy.tsx @@ -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}`, @@ -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) {