Skip to content

Commit d49c639

Browse files
committed
Update Achievements prop to use cookedItems
Replaces the 'recipesCooked' prop with 'cookedItems' when passing data to the Achievements component. This aligns the prop with the updated data structure.
1 parent 2549cbd commit d49c639

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Components/stats/stats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Stats = (props) => {
3232
<img src={Rope} alt=""></img>
3333
</div>
3434
<Achievements
35-
recipesCooked={item.recipesCooked}
35+
recipesCooked={item.cookedItems}
3636
itemsCrafted={item.itemsCrafted}
3737
cropsShipped={item.cropsShipped}
3838
fishCaught={item.fishCaught}
@@ -67,7 +67,7 @@ const Stats = (props) => {
6767
<img src={Rope} alt=""></img>
6868
</div>
6969
<Achievements
70-
recipesCooked={props.playerData.recipesCooked}
70+
recipesCooked={props.playerData.cookedItems}
7171
itemsCrafted={props.playerData.itemsCrafted}
7272
cropsShipped={props.playerData.cropsShipped}
7373
fishCaught={props.playerData.fishCaught}

0 commit comments

Comments
 (0)