diff --git a/apps/admin-x-settings/src/components/settings/membership/portal/PortalFrame.tsx b/apps/admin-x-settings/src/components/settings/membership/portal/PortalFrame.tsx index 64a180a95d..9fee8d4efe 100644 --- a/apps/admin-x-settings/src/components/settings/membership/portal/PortalFrame.tsx +++ b/apps/admin-x-settings/src/components/settings/membership/portal/PortalFrame.tsx @@ -19,6 +19,7 @@ const PortalFrame: React.FC = ({href, onDestroyed, selectedTab const makeVisible = useCallback(() => { setTimeout(() => { if (iframeRef.current) { + setHasLoaded(true); setIsInvisible(false); } }, 100); // Delay to allow scripts to render @@ -64,7 +65,6 @@ const PortalFrame: React.FC = ({href, onDestroyed, selectedTab title="Portal Preview" width="100%" onLoad={() => { - setHasLoaded(true); makeVisible(); }} />