fixed some bug
This commit is contained in:
@@ -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} />
|
||||
))}
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user