Skip to content

Commit c4d1a2b

Browse files
committed
fix: reaction memoization crash
1 parent f372769 commit c4d1a2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/components/Message/MessageSimple/ReactionList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
313313
? prevReactions.length === nextReactions.length &&
314314
prevReactions.every(
315315
({ count, type }, index) =>
316-
type === nextMessage.latest_reactions?.[index].type &&
317-
count === nextMessage.latest_reactions?.[index].count,
316+
type === nextMessage.latest_reactions?.[index]?.type &&
317+
count === nextMessage.latest_reactions?.[index]?.count,
318318
)
319319
: prevReactions === nextReactions;
320320

0 commit comments

Comments
 (0)