0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Fix validation form errors rendering.

This commit is contained in:
Andrey Antukh 2016-05-28 13:44:52 +03:00
parent cf7b8d2224
commit 3b675af74a
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -5,11 +5,10 @@
(defn input-error
[errors field]
(when-let [errors (get errors field)]
(when-let [error (get errors field)]
(html
[:ul.form-errors
(for [error errors]
[:li {:key error} (tr error)])])))
[:li {:key error} (tr error)]])))
(defn error-class
[errors field]