From 68c4b38fab7c344e28a27f52e928e6304fe44f29 Mon Sep 17 00:00:00 2001 From: Rohan-cp Date: Thu, 11 Apr 2024 21:50:46 -0400 Subject: [PATCH] minor --- .../src/components/Feed/createVirtualizedFeedEventItems.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/components/Feed/createVirtualizedFeedEventItems.ts b/apps/mobile/src/components/Feed/createVirtualizedFeedEventItems.ts index 9b658c1f6..3cb2b4d62 100644 --- a/apps/mobile/src/components/Feed/createVirtualizedFeedEventItems.ts +++ b/apps/mobile/src/components/Feed/createVirtualizedFeedEventItems.ts @@ -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({