From d6d247f1f872fc95c35ed565d45096bd301ffb0f Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:33:44 -0500 Subject: [PATCH] fix: Missing Yield Text (#5827) --- .../RecipePageParts/RecipePageInfoCard.vue | 2 +- .../Domain/Recipe/RecipePrintView.vue | 2 +- .../components/Domain/Recipe/RecipeYield.vue | 25 +++++++++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInfoCard.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInfoCard.vue index 962b2c6fa..54e39e86e 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInfoCard.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInfoCard.vue @@ -35,7 +35,7 @@ > diff --git a/frontend/components/Domain/Recipe/RecipePrintView.vue b/frontend/components/Domain/Recipe/RecipePrintView.vue index c9e0ee9ac..1c8a261fb 100644 --- a/frontend/components/Domain/Recipe/RecipePrintView.vue +++ b/frontend/components/Domain/Recipe/RecipePrintView.vue @@ -222,7 +222,7 @@ export default defineNuxtComponent({ const servingsDisplay = computed(() => { const { scaledAmountDisplay } = useScaledAmount(props.recipe.recipeYieldQuantity, props.scale); - return scaledAmountDisplay + return scaledAmountDisplay || props.recipe.recipeYield ? i18n.t("recipe.yields-amount-with-text", { amount: scaledAmountDisplay, text: props.recipe.recipeYield, diff --git a/frontend/components/Domain/Recipe/RecipeYield.vue b/frontend/components/Domain/Recipe/RecipeYield.vue index 0ba676a3a..acb34dd7e 100644 --- a/frontend/components/Domain/Recipe/RecipeYield.vue +++ b/frontend/components/Domain/Recipe/RecipeYield.vue @@ -1,6 +1,6 @@