Skip to content

Commit

Permalink
chore: changed to get tags from first level
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 23, 2023
1 parent b3c9232 commit 5042086
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 5042086

Please sign in to comment.