Skip to content

Commit

Permalink
fix: fixed leak issue when checkpoint will be undefined (#553)
Browse files Browse the repository at this point in the history
Co-authored-by: SundasNoreen <[email protected]>
Co-authored-by: Awais Ansari <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2023
1 parent b8f11c3 commit ea235cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discussions/data/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const useTourConfiguration = () => {
), []);

const toursConfig = useMemo(() => (
tours?.map((tour) => (
tours?.map((tour) => Object.keys(tourCheckpoints(intl)).includes(tour.tourName) && (
{
tourId: tour.tourName,
advanceButtonText: intl.formatMessage(messages.advanceButtonText),
Expand Down

0 comments on commit ea235cf

Please sign in to comment.