Skip to content

Commit 0c5f0fe

Browse files
committed
adjusts mapped ids
1 parent 75bb2c9 commit 0c5f0fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/TypingIndicator/TypingIndicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const TypingIndicator = ({
4343
image={user?.image}
4444
size={avatarSize}
4545
name={user?.name || user?.id}
46-
key={i}
46+
key={`${user?.id}-${i}`}
4747
/>
4848
))}
4949
</div>

src/components/TypingIndicator/__tests__/TypingIndicator.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ describe('TypingIndicator', () => {
152152
channel = client.channel('messaging', ch.id);
153153
await channel.watch();
154154
});
155+
155156
afterEach(cleanup);
156157

157158
it('should render TypingIndicator if user is typing in thread', async () => {

0 commit comments

Comments
 (0)