From 4a4c32796a2a9a6784e8333c6a3b44710b14f66f Mon Sep 17 00:00:00 2001 From: Raquel Smith Date: Thu, 19 Oct 2023 08:23:50 -0700 Subject: [PATCH] fix: redirect to correct view for surveys (#18081) redirect to correct view for surveys --- frontend/src/scenes/onboarding/onboardingLogic.tsx | 8 +++++--- frontend/src/scenes/products/Products.tsx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/scenes/onboarding/onboardingLogic.tsx b/frontend/src/scenes/onboarding/onboardingLogic.tsx index a83f33d5b51fd..dfaff04773bf8 100644 --- a/frontend/src/scenes/onboarding/onboardingLogic.tsx +++ b/frontend/src/scenes/onboarding/onboardingLogic.tsx @@ -27,12 +27,14 @@ export type OnboardingStep = JSX.Element export const getProductUri = (productKey: ProductKey): string => { switch (productKey) { - case 'product_analytics': + case ProductKey.PRODUCT_ANALYTICS: return combineUrl(urls.events(), { onboarding_completed: true }).url - case 'session_replay': + case ProductKey.SESSION_REPLAY: return urls.replay() - case 'feature_flags': + case ProductKey.FEATURE_FLAGS: return urls.featureFlags() + case ProductKey.SURVEYS: + return urls.surveys() default: return urls.default() } diff --git a/frontend/src/scenes/products/Products.tsx b/frontend/src/scenes/products/Products.tsx index 0ed69a30e48b0..afdbb1abffabe 100644 --- a/frontend/src/scenes/products/Products.tsx +++ b/frontend/src/scenes/products/Products.tsx @@ -17,7 +17,7 @@ import { productsLogic } from './productsLogic' export const scene: SceneExport = { component: Products, - // logic: featureFlagsLogic, + logic: productsLogic, } function OnboardingCompletedButton({