From 7d5a3391f1d0df1580884f7685242759bb56bcb2 Mon Sep 17 00:00:00 2001 From: Anshumancanrock <109489361+Anshumancanrock@users.noreply.github.com> Date: Fri, 26 Sep 2025 12:37:24 +0530 Subject: [PATCH] fix: hydration issue ( Step 3 is not visible for all analytics apps ) (#24089) * booking cancellation reason overflow fix * apps-prod-issue * resolve Step 3 blank screen in app installation flow in production * resolve resolve Step 3 blank screen in app installation flow in production * Update step-view.tsx --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> --- .../web/components/apps/installation/ConfigureStepCard.tsx | 7 +------ .../modules/apps/installation/[[...step]]/step-view.tsx | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/web/components/apps/installation/ConfigureStepCard.tsx b/apps/web/components/apps/installation/ConfigureStepCard.tsx index 73a774d236..21dea8b9c3 100644 --- a/apps/web/components/apps/installation/ConfigureStepCard.tsx +++ b/apps/web/components/apps/installation/ConfigureStepCard.tsx @@ -213,7 +213,6 @@ const ConfigureStepCardContent: FC = (props) => { ); const [submit, setSubmit] = useState(false); - const [mounted, setMounted] = useState(false); const allUpdated = updatedEventTypesStatus.every((item) => item.every((iitem) => iitem.updated)); useEffect(() => { @@ -223,11 +222,7 @@ const ConfigureStepCardContent: FC = (props) => { } }, [submit, allUpdated, mainForSubmitRef]); - useEffect(() => { - setMounted(true); - }, []); - - if (!formPortalRef?.current || !mounted) { + if (!formPortalRef?.current) { return null; } diff --git a/apps/web/modules/apps/installation/[[...step]]/step-view.tsx b/apps/web/modules/apps/installation/[[...step]]/step-view.tsx index 249be73406..dfd8121369 100644 --- a/apps/web/modules/apps/installation/[[...step]]/step-view.tsx +++ b/apps/web/modules/apps/installation/[[...step]]/step-view.tsx @@ -310,7 +310,6 @@ const OnboardingPage = ({ /> )} {currentStep === AppOnboardingSteps.CONFIGURE_STEP && - formPortalRef.current && eventTypeGroups && (