svelte-forms-lib icon indicating copy to clipboard operation
svelte-forms-lib copied to clipboard

Reversing order of errors before using .map

Open seakrebel opened this issue 3 years ago • 0 comments

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.

seakrebel avatar Mar 19 '22 16:03 seakrebel