Skip to content

Commit

Permalink
trigger via /onboarding path instead of query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jun 5, 2023
1 parent c2b8cae commit 648a737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const App = lazy(() => import("./App"));
// 1. The onboarding query parameter is present
// 2. The example button stories are present
addons.register("@storybook/addon-onboarding", async (api) => {
const isOnboarding = api.getUrlState().queryParams.onboarding;
const isOnboarding = api.getUrlState().path === '/onboarding';

if (!isOnboarding) {
return;
Expand Down

0 comments on commit 648a737

Please sign in to comment.