kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
fix(zaps-modal): add index as key in accounts loop
rodzic
5a60df0a8a
commit
22824df62c
|
@ -59,13 +59,13 @@ const ZapsModal: React.FC<IZapsModal> = ({ onClose, statusId }) => {
|
||||||
style={{ height: '80vh' }}
|
style={{ height: '80vh' }}
|
||||||
useWindowScroll={false}
|
useWindowScroll={false}
|
||||||
>
|
>
|
||||||
{accounts.map((account) => {
|
{accounts.map((account, index) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div key={index}>
|
||||||
<Text weight='bold'>
|
<Text weight='bold'>
|
||||||
{shortNumberFormat(account.amount / 1000)}
|
{shortNumberFormat(account.amount / 1000)}
|
||||||
</Text>
|
</Text>
|
||||||
<AccountContainer key={account.id} id={account.id} note={account.comment} emoji='⚡' />
|
<AccountContainer id={account.id} note={account.comment} emoji='⚡' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Ładowanie…
Reference in New Issue