From 0dec94a5c63956f222c67c479a328bfc090b5a96 Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Fri, 18 Oct 2024 18:17:17 +0530 Subject: [PATCH] chore: remove the trial expiry banner on logout (#6212) --- frontend/src/container/AppLayout/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/container/AppLayout/index.tsx b/frontend/src/container/AppLayout/index.tsx index 9193decd6b..beb4cea61c 100644 --- a/frontend/src/container/AppLayout/index.tsx +++ b/frontend/src/container/AppLayout/index.tsx @@ -211,6 +211,13 @@ function AppLayout(props: AppLayoutProps): JSX.Element { } }, [licenseData, isFetching]); + useEffect(() => { + // after logging out hide the trial expiry banner + if (!isLoggedIn) { + setShowTrialExpiryBanner(false); + } + }, [isLoggedIn]); + const handleUpgrade = (): void => { if (role === 'ADMIN') { history.push(ROUTES.BILLING);