Skip to content

Commit

Permalink
Merge pull request #31399 from Krishna2323/krishna2323/issue/31151
Browse files Browse the repository at this point in the history
Fix: Avatars row position is not correct on Add message page
  • Loading branch information
Hayata Suenaga authored Nov 17, 2023
2 parents afe9b99 + d61b513 commit 8c9925d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MultipleAvatars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ function MultipleAvatars({
const rowSize = Math.min(Math.ceil(icons.length / 2), maxAvatarsInRow);

// Slice the icons array into two rows
const firstRow = icons.slice(rowSize);
const secondRow = icons.slice(0, rowSize);
const firstRow = icons.slice(0, rowSize);
const secondRow = icons.slice(rowSize);

// Update the state with the two rows as an array
return [firstRow, secondRow];
Expand Down

0 comments on commit 8c9925d

Please sign in to comment.