tjinauyeung / svelte-forms-lib

📝. A lightweight library for managing forms in Svelte
https://svelte-forms-lib-sapper-docs.now.sh/
MIT License
604 stars 59 forks source link

Reversing order of errors before using .map #161

Open seakrebel opened 2 years ago

seakrebel commented 2 years ago

in function handleSubmit errors were being mapped from first to last, last being the only saved one (and shown to the user), which was wrong. Reversing the array before map() fixes this issue.