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);