Skip to content

Commit

Permalink
fix(profile): Fix unsafe prop access in achievement page
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed Feb 16, 2024
1 parent 4c64e11 commit d913bdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/components/pages/parts/editor-achievements.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class EditorAchievementTab extends React.Component {
>
<CardDeck className="mb-3">
<DragAndDrop
initialAchievement={this.currAchievement.model.fulfillmentValue[0]?.achievement}
initialAchievement={this.currAchievement.model.fulfillmentValue?.[0]?.achievement}
name="rank1"
/>
<DragAndDrop
initialAchievement={this.currAchievement.model.fulfillmentValue[1]?.achievement}
initialAchievement={this.currAchievement.model.fulfillmentValue?.[1]?.achievement}
name="rank2"
/>
<DragAndDrop
initialAchievement={this.currAchievement.model.fulfillmentValue[2]?.achievement}
initialAchievement={this.currAchievement.model.fulfillmentValue?.[2]?.achievement}
name="rank3"
/>
</CardDeck>
Expand Down

0 comments on commit d913bdb

Please sign in to comment.