Skip to content

Commit

Permalink
fix(GoalCriteria): correct condition for criteriaGoal
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Nov 30, 2023
1 parent b4c3ead commit 6bf390f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GoalActivityFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const GoalActivityFeed = forwardRef<HTMLDivElement, GoalActivityFeedProps
weight: String(data.weight),
goalId: goal.id,
criteriaGoal:
'selected' in data && data.selected != null
'selected' in data && data.selected.id != null
? {
id: data.selected.id,
}
Expand All @@ -102,7 +102,7 @@ export const GoalActivityFeed = forwardRef<HTMLDivElement, GoalActivityFeedProps
weight: String(data.weight),
goalId: goal.id,
criteriaGoal:
'selected' in data && data.selected != null
'selected' in data && data.selected.id != null
? {
id: data.selected.id,
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6bf390f

Please sign in to comment.