fix: prevent empty recipe notes from displaying
All checks were successful
CI / update (push) Successful in 1m13s

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 b6eb3d9458
commit 1addc4b1d7

View File

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