Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-cp committed Apr 12, 2024
1 parent 984c397 commit 68c4b38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ export function createVirtualizedFeedEventItems({

let postCount = 0;
const itemsWithSuggestedProfileRow = [];
let inserted = false; // Tracks if the special row has been inserted
let insertedRow = false;

for (const item of items) {
if (!inserted && item.kind === 'post-item-mint-link') {
if (!insertedRow && item.kind === 'post-item-mint-link') {
postCount++;
if (postCount === SUGGESTED_PROFILE_ROW_IDX) {
itemsWithSuggestedProfileRow.push({
Expand Down

0 comments on commit 68c4b38

Please sign in to comment.