diff --git a/apps/meteor/client/sidebar/footer/SidebarFooterWatermark.tsx b/apps/meteor/client/sidebar/footer/SidebarFooterWatermark.tsx index ee2d8406ba07..c11b188bb5a1 100644 --- a/apps/meteor/client/sidebar/footer/SidebarFooterWatermark.tsx +++ b/apps/meteor/client/sidebar/footer/SidebarFooterWatermark.tsx @@ -7,11 +7,11 @@ import { useQuery } from 'react-query'; export const SidebarFooterWatermark = (): ReactElement | null => { const t = useTranslation(); const isEnterpriseEdition = useEndpoint('GET', '/v1/licenses.isEnterprise'); - const { data, isSuccess } = useQuery(['licenses'], () => isEnterpriseEdition(), { + const result = useQuery(['licenses'], () => isEnterpriseEdition(), { refetchOnWindowFocus: false, }); - if (!isSuccess && !data?.isEnterprise) { + if (!result.isSuccess || result.isLoading || result.data.isEnterprise) { return null; }