Skip to content

Commit c2f3056

Browse files
committed
Add missing key prop to ItemWithCounter in Cooking tab
Added a key prop to each ItemWithCounter component in the cookedItems map to prevent React key warnings and improve list rendering performance.
1 parent fbe89fb commit c2f3056

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Components/AchieveTabs/Cooking/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const Food = ( {cookedItems, knownRecipes, alreadyCookedRecipes, totalRecipes, a
2929
{ cookedItems ?
3030
cookedItems.map((d, i) =>
3131
<ItemWithCounter
32+
key={i}
3233
link={`https://stardewvalleywiki.com/${d.link}`}
3334
src={`https://stardew-tracker.s3.amazonaws.com/Cooking/${d.image}.png`}
3435
name={d.name}

0 commit comments

Comments
 (0)