Skip to content

Commit

Permalink
chore: return always true for over mac limit (test only)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 9, 2023
1 parent 4ea4a2d commit 2380915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit 2380915

Please sign in to comment.