From be1be9bb19d7bf27e7d5458dcea478145c6bb92c Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Tue, 19 Sep 2023 09:31:44 -0300 Subject: [PATCH] chore: return always true for over mac limit (test only) --- apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx index 9c28764d4707..21e534c962da 100644 --- a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx +++ b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx @@ -1,9 +1,9 @@ // @ts-nocheck -import { useEndpoint } from '@rocket.chat/ui-contexts'; +// import { useEndpoint } from '@rocket.chat/ui-contexts'; import { useQuery } from '@tanstack/react-query'; -export const useIsOverMacLimit = () => { - const getMacLimit = useEndpoint('GET', '/v1/livechat/mac'); // TODO: add the correct endpoint +export const useIsOverMacLimit = (): boolean => { + const getMacLimit = () => Promise.resolve(true); // useEndpoint('GET', '/v1/livechat/mac'); // TODO: add the correct endpoint const { data: isOverMacLimit } = useQuery(['omnichannel', '/v1/livechat/mac'], () => getMacLimit()); return isOverMacLimit; };