From ea235cf6ca707521adbc90938f928c7816a8029d Mon Sep 17 00:00:00 2001 From: sundasnoreen12 <72802712+sundasnoreen12@users.noreply.github.com> Date: Tue, 8 Aug 2023 02:32:34 -0700 Subject: [PATCH] fix: fixed leak issue when checkpoint will be undefined (#553) Co-authored-by: SundasNoreen Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> --- src/discussions/data/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discussions/data/hooks.js b/src/discussions/data/hooks.js index 658c18b3..466eb140 100644 --- a/src/discussions/data/hooks.js +++ b/src/discussions/data/hooks.js @@ -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),