Skip to content

Commit

Permalink
fix(survey): use renamed FoodHeader field
Browse files Browse the repository at this point in the history
  • Loading branch information
mechkg committed Aug 9, 2023
1 parent efd635b commit c612b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,11 @@ export default defineComponent({
associatedFoodDescription(food: AssociatedFood): string {
if (food.type === 'selected' && food.selectedFood !== undefined)
return food.selectedFood.description;
return food.selectedFood.name;
if (food.type === 'existing' && food.existingFoodId !== undefined)
return this.existingFoodDescription(food.existingFoodId);
if (food.type === 'missing') return 'Missing food';
if (food.type === 'missing')
return this.$t(`prompts.${this.type}.missing.placeholder`).toString();
return 'No food selected';
},
Expand Down
1 change: 1 addition & 0 deletions packages/i18n/src/shared/en/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const prompts: LocaleMessageObject = {
<p>Or click 'Browse all foods' and explore the food categories.</p>`,
report: 'Report a missing food',
tryAgain: 'OK, let me try again',
placeholder: 'Missing food',
},
},
editMeal: {
Expand Down

0 comments on commit c612b06

Please sign in to comment.