Skip to content

Commit

Permalink
chore: Add Math.floor
Browse files Browse the repository at this point in the history
  • Loading branch information
whalekiller03 committed Sep 27, 2024
1 parent dc28865 commit e404085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PartnerSkelton = () => {
variant="rounded"
width={60}
height={23}
key={`partnerSkelton${Math.random() + idx}`}
key={`partnerSkelton${Math.floor(Math.random() * idx)}`}
sx={{ mr: '8px', borderRadius: '18px' }}
/>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PartnerSkelton from './PartnerSkelton';

const PartnerSkeltonCard = ({ number, mobileScreen }) => {
return new Array(number).fill(0).map((_, idx) => (
<Fragment key={`partnerSkelton-${Math.random() + idx}`}>
<Fragment key={`partnerSkelton-${Math.floor(Math.random() * idx)}`}>
<Grid item md={6} mb={mobileScreen && '12px'} width="100%">
<PartnerSkelton />
</Grid>
Expand Down

0 comments on commit e404085

Please sign in to comment.