Skip to content

Scheduling infrastructure for absolutely everyone.

fix: hydration issue ( Step 3 is not visible for all analytics apps ) (#24089)

Anshumancanrock7d5a3391f1d0
diff --git a/apps/web/components/apps/installation/ConfigureStepCard.tsx b/apps/web/components/apps/installation/ConfigureStepCard.tsx
index 73a774d236c..21dea8b9c32 100644
--- a/apps/web/components/apps/installation/ConfigureStepCard.tsx
+++ b/apps/web/components/apps/installation/ConfigureStepCard.tsx
@@ -213,7 +213,6 @@ const ConfigureStepCardContent: FC<ConfigureStepCardProps> = (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<ConfigureStepCardProps> = (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 249be734068..dfd8121369c 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 && (
<ConfigureStepCard
slug={appMetadata.slug}