diff --git a/src/app.js b/src/app.js index bc9b5e5..d93f5d9 100644 --- a/src/app.js +++ b/src/app.js @@ -53,7 +53,7 @@ function render() { $("addExample").textContent = example === null ? "" : t.addExample.replace("{name}", example); $("addExample").dataset.name = example ?? ""; $("noRecipeHint").textContent = t.noRecipeHint; - $("noRecipeHint").hidden = !hasNoRecipe(state.dishes, findRecipe); + $("noRecipeHint").hidden = n !== 0 && !hasNoRecipe(state.dishes, findRecipe); const ul = $("list"); ul.replaceChildren(...state.dishes.map((d) => { const li = document.createElement("li");