diff --git a/frontend/src/component/banners/internalBanners/LicenseBanner.tsx b/frontend/src/component/banners/internalBanners/LicenseBanner.tsx index ae56e53acc..7d90b1e7dd 100644 --- a/frontend/src/component/banners/internalBanners/LicenseBanner.tsx +++ b/frontend/src/component/banners/internalBanners/LicenseBanner.tsx @@ -1,15 +1,11 @@ import { Banner } from 'component/banners/Banner/Banner'; -import { - useLicense, - useLicenseCheck, -} from 'hooks/api/getters/useLicense/useLicense'; +import { useLicenseCheck } from 'hooks/api/getters/useLicense/useLicense'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import type { BannerVariant } from 'interfaces/banner'; export const LicenseBanner = () => { const { isEnterprise } = useUiConfig(); const licenseInfo = useLicenseCheck(); - const license = useLicense(); // Only for enterprise if ( @@ -29,7 +25,7 @@ export const LicenseBanner = () => { return ; } else { - if (!license.loading && !license.error && licenseInfo.message) { + if (licenseInfo.message) { const banner = { message: licenseInfo.message, variant: mapToVariant(licenseInfo.messageType),