diff --git a/apps/meteor/client/hooks/omnichannel/useIsRoomActive.tsx b/apps/meteor/client/hooks/omnichannel/useIsRoomActive.tsx index cfae1a44bf10..b57a35b0ce28 100644 --- a/apps/meteor/client/hooks/omnichannel/useIsRoomActive.tsx +++ b/apps/meteor/client/hooks/omnichannel/useIsRoomActive.tsx @@ -3,7 +3,7 @@ import { useMemo } from 'react'; export const useIsRoomActive = (room: IOmnichannelRoom) => { // @ts-ignore - const { activity } = room.v; // TODO: add activity to IOmnichannelRoom['v'] + const { activity = [] } = room.v; // TODO: add activity to IOmnichannelRoom['v'] const isContactActive = useMemo(() => { const date = new Date(); const currentPeriod = `${date.getFullYear()}-${date.getMonth() + 1}`;