From c1cb0d1f7c00e8185deb05c297dafaba68ab0ed7 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 12 Jun 2026 16:02:43 +0300 Subject: [PATCH] migrate GroupChatJoinDialog to count prop Finishes the invite-preview cleanup flagged in review: GroupChatJoinDialog was the fourth surface hand-padding the profiles array, and its Array(memberCount - 1) lacked the zero guard the others had (RangeError if memberCount is 0). Using the count prop removes that latent edge case. Co-Authored-By: Claude Fable 5 --- src/components/intents/GroupChatJoinDialog.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/intents/GroupChatJoinDialog.tsx b/src/components/intents/GroupChatJoinDialog.tsx index e0e3587bf6..a83bc973f1 100644 --- a/src/components/intents/GroupChatJoinDialog.tsx +++ b/src/components/intents/GroupChatJoinDialog.tsx @@ -315,10 +315,8 @@ function GroupChatJoinDialogContent({code}: {code?: string}) { <>