diff --git a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx index f09cb858bcfd9..fe9c14b93019f 100644 --- a/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx +++ b/apps/meteor/client/hooks/omnichannel/useIsOverMacLimit.tsx @@ -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 }) => {