fix: dont double cache documents

This commit is contained in:
2025-01-25 18:51:10 +01:00
parent 0f146ea699
commit 23f33b7472
6 changed files with 40 additions and 18 deletions

View File

@@ -50,7 +50,8 @@ export function isValidRecipe(
| null
| undefined,
) {
return recipe?.ingredients?.length && recipe?.instructions?.length &&
return recipe?.ingredients?.length && recipe.ingredients.length > 1 &&
recipe?.instructions?.length &&
recipe.name?.length;
}