fixed some bug

This commit is contained in:
Ren Amamiya
2023-03-24 11:08:36 +07:00
parent 47f6e6833b
commit e2fa8cbe03
3 changed files with 6 additions and 4 deletions
@@ -5,8 +5,8 @@ import { Key, memo } from 'react';
export const MessageList = memo(function MessageList({ data }: { data: any }) {
return (
<>
{data.map((item: string, index: Key) => (
<UserMini key={index} pubkey={item} />
{data.map((item: { pubkey: string }, index: Key) => (
<UserMini key={index} pubkey={item.pubkey} />
))}
</>
);