diff --git a/apps/meteor/client/hooks/omnichannel/useMacValidations.tsx b/apps/meteor/client/hooks/omnichannel/useMacLimitValidations.tsx similarity index 86% rename from apps/meteor/client/hooks/omnichannel/useMacValidations.tsx rename to apps/meteor/client/hooks/omnichannel/useMacLimitValidations.tsx index 3358dd5be11f..da2bfae69d53 100644 --- a/apps/meteor/client/hooks/omnichannel/useMacValidations.tsx +++ b/apps/meteor/client/hooks/omnichannel/useMacLimitValidations.tsx @@ -4,8 +4,7 @@ import { useEffect, useState } from 'react'; import { useLicense } from '../useLicense'; export const useMacLimitValidations = (enabled: boolean) => { - const { data: { license } = {}, isLoading, isError } = useLicense(); - const preventedActions = license?.preventedActions; + const { data: { preventedActions } = {}, isLoading, isError } = useLicense(); const [isOverMacLimit, setOverMacLimit] = useState(preventedActions?.monthlyActiveContacts || false); const subscribe = useStream('notify-logged'); diff --git a/apps/meteor/client/providers/OmnichannelProvider.tsx b/apps/meteor/client/providers/OmnichannelProvider.tsx index 5d5bbe09a9e5..c73e7f31797b 100644 --- a/apps/meteor/client/providers/OmnichannelProvider.tsx +++ b/apps/meteor/client/providers/OmnichannelProvider.tsx @@ -19,7 +19,7 @@ import { useHasLicenseModule } from '../../ee/client/hooks/useHasLicenseModule'; import { ClientLogger } from '../../lib/ClientLogger'; import type { OmnichannelContextValue } from '../contexts/OmnichannelContext'; import { OmnichannelContext } from '../contexts/OmnichannelContext'; -import { useMacLimitValidations } from '../hooks/omnichannel/useMacValidations'; +import { useMacLimitValidations } from '../hooks/omnichannel/useMacLimitValidations'; import { useReactiveValue } from '../hooks/useReactiveValue'; const emptyContextValue: OmnichannelContextValue = {