Skip to content

Commit

Permalink
fix: added default value to activity
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Sep 15, 2023
1 parent 359a042 commit 9388073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/hooks/omnichannel/useIsRoomActive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 9388073

Please sign in to comment.