Skip to content

Commit

Permalink
fix: reading the endpoint incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 9, 2023
1 parent a80a577 commit 983a8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const useIsOverMacLimit = (): boolean => {
const queryClient = useQueryClient();
const notifyLogged = useStream('notify-logged');
const getMacLimit = useEndpoint('GET', '/v1/omnichannel/mac/check');
const { data: isOverMacLimit } = useQuery(['/v1/omnichannel/mac/check'], () => getMacLimit());
const { data: { onLimit: isOverMacLimit = false } = {} } = useQuery(['/v1/omnichannel/mac/check'], () => getMacLimit());

useEffect(() => {
return notifyLogged(`mac.limit`, ({ limitReached }) => {
Expand Down

0 comments on commit 983a8e4

Please sign in to comment.