Fix index issue on friend bubbles

This commit is contained in:
Bill 2021-07-07 05:05:14 -04:00
parent f6194e7f13
commit a9eff4f0ae

View File

@ -276,7 +276,7 @@ export const AvatarInfoWidgetView: FC<AvatarInfoWidgetViewProps> = props =>
{ currentView }
{ (nameBubbles.length > 0) && nameBubbles.map((name, index) =>
{
return <AvatarInfoWidgetNameView nameData={ name } close={ () => removeNameBubble(index) } />;
return <AvatarInfoWidgetNameView key={ index } nameData={ name } close={ () => removeNameBubble(index) } />;
}) }
{ rentableBotChatEvent && <AvatarInfoRentableBotChatView chatEvent={ rentableBotChatEvent } /> }
</>