Skip to content

Commit

Permalink
chore: renamed useMacValidations hook
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 23, 2023
1 parent 6bce47b commit a9f4d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/providers/OmnichannelProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a9f4d51

Please sign in to comment.