Skip to content

Commit

Permalink
fix: fixed leak issue when checkpoint will be undefined (openedx#553)
Browse files Browse the repository at this point in the history
Co-authored-by: SundasNoreen <sundas.noreen@arbisoft.com>
Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
  • Loading branch information
3 people authored and snglth committed Jan 9, 2024
1 parent 65bbd19 commit c11c464
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 c11c464

Please sign in to comment.