fix(zaps-modal): add index as key in accounts loop
This commit is contained in:
parent
5a60df0a8a
commit
22824df62c
|
@ -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>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue