Skip to content

Commit

Permalink
fix: redirect to correct view for surveys (#18081)
Browse files Browse the repository at this point in the history
redirect to correct view for surveys
  • Loading branch information
raquelmsmith authored Oct 19, 2023
1 parent c8dbc68 commit 4a4c327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions frontend/src/scenes/onboarding/onboardingLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/products/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { productsLogic } from './productsLogic'

export const scene: SceneExport = {
component: Products,
// logic: featureFlagsLogic,
logic: productsLogic,
}

function OnboardingCompletedButton({
Expand Down

0 comments on commit 4a4c327

Please sign in to comment.