From 66c5072110fe3f0a7795650dee6367e69589e534 Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Wed, 11 Oct 2023 10:44:18 -0300 Subject: [PATCH] chore: incorrect check --- apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx index 71c8963f047a2..fdcc056b89d1e 100644 --- a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx +++ b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx @@ -8,5 +8,5 @@ export const useIsOverMacLimit = (): boolean => { const getMacLimit = useEndpoint('GET', '/v1/omnichannel/mac/check'); const { data: { onLimit = true } = {} } = useQuery(['/v1/omnichannel/mac/check'], () => getMacLimit(), { enabled: isOmnichannelEnabled }); - return onLimit; + return !onLimit; };