From 0627840f134a391fa3fa9b8ed1b597b649bc51df Mon Sep 17 00:00:00 2001 From: Princi Vershwal Date: Wed, 24 Jan 2024 17:02:55 +0530 Subject: [PATCH] Offeri frame flash fix (#19565) --- .../src/components/settings/membership/portal/PortalFrame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }} />