WTC-26: подсказка про «Рецепта нет» на пустом экране #26

Merged
peppa-bot merged 4 commits from task/wtc-26 into main 2026-11-16 06:29:18 +05:00
Showing only changes of commit da935dc541 - Show all commits

View File

@ -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");