From 504208608e056e7a76c26674a63fbb63affcce4f Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Fri, 20 Oct 2023 16:38:34 -0300 Subject: [PATCH] chore: changed to get tags from first level --- .../ee/client/sidebar/footer/SidebarFooterWatermark.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/ee/client/sidebar/footer/SidebarFooterWatermark.tsx b/apps/meteor/ee/client/sidebar/footer/SidebarFooterWatermark.tsx index 3e85b86b45d77..549b4ca9df39c 100644 --- a/apps/meteor/ee/client/sidebar/footer/SidebarFooterWatermark.tsx +++ b/apps/meteor/ee/client/sidebar/footer/SidebarFooterWatermark.tsx @@ -8,8 +8,8 @@ import { useLicense } from '../../../../client/hooks/useLicense'; export const SidebarFooterWatermark = (): ReactElement | null => { const t = useTranslation(); - const { data: { license, activeModules = [], trial: isTrial = false } = {}, isLoading, isError } = useLicense(); - const [{ name: planName }] = license?.information?.tags ?? [{ name: 'Community' }]; + const { data: { activeModules = [], trial: isTrial = false, tags } = {}, isLoading, isError } = useLicense(); + const [{ name: planName }] = tags ?? [{ name: 'Community' }]; const isWatermarkHidden = !isTrial && activeModules.includes('hide-watermark');