Skip to content

Commit

Permalink
fix uncontrolled component warning (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengLawrence authored Dec 25, 2024
1 parent 35d1f86 commit f1002e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/Food.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export type FoodGroup = "vegetable" | "fruit" | "carbohydrate" | "proteinDiary"
export function newFood(): Food {
return {
description: "",
serving: {}
serving: {},
bestChoice: false,
}
}

Expand Down

0 comments on commit f1002e1

Please sign in to comment.