fix: prevent empty recipe notes from displaying

Add trim check to ensure recipe notes only render when they contain non-whitespace content, preventing empty "Notiz" boxes from appearing on recipes.
This commit is contained in:
2026-01-03 12:58:46 +01:00
parent 9581d6727b
commit b88c432f47
@@ -350,7 +350,7 @@ h4{
isLoggedIn={!!data.session?.user}
/>
{#if data.note}
{#if data.note && data.note.trim()}
<RecipeNote note={data.note}></RecipeNote>
{/if}
</div>