From 67c171327eb01c36fe4fc24ad8c3d2b8f53664d5 Mon Sep 17 00:00:00 2001
From: Li Yi Yu
Date: Thu, 26 Oct 2023 12:37:49 -0400
Subject: [PATCH] survey responded fix
---
frontend/src/lib/taxonomy.tsx | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
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) {