Skip to content

Commit

Permalink
🐛 Fixed being able to have tutorials on paths with params
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakihle committed Oct 25, 2024
1 parent c548edb commit 71470d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/TutorialProvider/TutorialProviderInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const TutorialProviderInner: FC = () => {
}, [activeTutorial, allElementsToHighlight, currentStep, viewportWidth]);

const tutorialsForPath = useMemo(() => {
return appTutorials.filter((item) => item.path === pathname);
return appTutorials.filter((item) => pathname.includes(item.path));
}, [appTutorials, pathname]);

const runTutorial = useCallback(
Expand Down

0 comments on commit 71470d1

Please sign in to comment.