Skip to content

Commit a9a1398

Browse files
committed
Pass professions prop to Achievements component
Added the professions prop when rendering the Achievements component in the Stats component to ensure profession data is available for Achievements.
1 parent b6e1e4a commit a9a1398

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Components/stats/stats.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const Stats = ({playerData, farmName, farmhandData}: formattedSaveFileType) => {
3838
<Achievements
3939
cookedItems={p.cookedItems}
4040
itemsCrafted={p.itemsCrafted}
41-
cropsShipped={p.cropsShipped}
41+
cropsShipped={p.cropsShipped}
42+
professions={p.professions}
4243
fishCaught={p.fishCaught}
4344
friendship={p.friendship}
4445
monstersKilled={p.monstersKilled}
@@ -75,6 +76,7 @@ const Stats = ({playerData, farmName, farmhandData}: formattedSaveFileType) => {
7576
<Achievements
7677
cookedItems={playerData.cookedItems}
7778
itemsCrafted={playerData.itemsCrafted}
79+
professions={playerData.professions}
7880
cropsShipped={playerData.cropsShipped}
7981
fishCaught={playerData.fishCaught}
8082
friendship={playerData.friendship}

0 commit comments

Comments
 (0)