chore: remove the trial expiry banner on logout (#6212)

This commit is contained in:
Vikrant Gupta 2024-10-18 18:17:17 +05:30 committed by GitHub
parent 204728ff60
commit 0dec94a5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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