Skip to content

Commit

Permalink
Move error message location
Browse files Browse the repository at this point in the history
  • Loading branch information
chungchunwang committed May 15, 2023
1 parent 6920b7d commit 39c0071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@
</div>
{/each}
</div>
{#if fieldState.error}
<div class="error">{fieldState.error}</div>
{/if}
{/if}
</div>
{#if fieldState?.error}
<div class="error">{fieldState.error}</div>
{/if}
{/if}
</div>
Expand Down

0 comments on commit 39c0071

Please sign in to comment.