fix: Missing Yield Text (#5827)

This commit is contained in:
Michael Genson
2025-07-29 15:33:44 -05:00
committed by GitHub
parent 3b74ddd9ad
commit d6d247f1f8
3 changed files with 19 additions and 10 deletions

View File

@@ -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,