Skip to content

Commit

Permalink
room number changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenX7 committed Dec 7, 2024
1 parent 716167c commit ab40797
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ const GroupList: React.FC<{
announcements?.forEach((group) => {
processedData.all.push(group);
console.log(group);
if (group.recipients && group.recipients.length <= 1 && !group.announcementGroup) {
if (
group.recipients &&
group.recipients.length <= 1 &&
!group.announcementGroup
) {
processedData.private.push(group);
} else {
processedData.groups.push(group);
Expand Down Expand Up @@ -205,7 +209,11 @@ const GroupList: React.FC<{
<GroupTab
key={group.id}
roomId={group.id}
roomKey={group.recipients?.map((resident) => resident.roomNumber).join(',') || ''}
roomKey={
group.recipients
?.map((resident) => resident.roomNumber)
.join(",") || ""
}
isDraft={false}
firstAnnouncement={
group.notifications && group.notifications.length > 0
Expand Down

0 comments on commit ab40797

Please sign in to comment.