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 dfdbb2e74e..136b5c5e7a 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 @@ -18,6 +18,7 @@ const PortalFrame: React.FC = ({href, onDestroyed, selectedTab const makeVisible = useCallback(() => { setTimeout(() => { if (iframeRef.current) { + setHasLoaded(true); setIsInvisible(false); } }, 300); @@ -60,7 +61,6 @@ const PortalFrame: React.FC = ({href, onDestroyed, selectedTab title="Portal Preview" width="100%" onLoad={() => { - setHasLoaded(true); }} />