fix(zaps-modal): add index as key in accounts loop

This commit is contained in:
P. Reis 2024-06-18 15:04:52 -03:00
parent 5a60df0a8a
commit 22824df62c
1 changed files with 3 additions and 3 deletions

View File

@ -59,13 +59,13 @@ const ZapsModal: React.FC<IZapsModal> = ({ onClose, statusId }) => {
style={{ height: '80vh' }}
useWindowScroll={false}
>
{accounts.map((account) => {
{accounts.map((account, index) => {
return (
<div>
<div key={index}>
<Text weight='bold'>
{shortNumberFormat(account.amount / 1000)}
</Text>
<AccountContainer key={account.id} id={account.id} note={account.comment} emoji='⚡' />
<AccountContainer id={account.id} note={account.comment} emoji='⚡' />
</div>
);
},