diff --git a/src/Component.svelte b/src/Component.svelte index 6bc2ad6..140d101 100644 --- a/src/Component.svelte +++ b/src/Component.svelte @@ -290,11 +290,11 @@ {/each} - {#if fieldState.error} -
{fieldState.error}
- {/if} {/if} + {#if fieldState?.error} +
{fieldState.error}
+ {/if} {/if}