Handle default register error

Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
mathieu.brunot 2019-12-27 05:51:50 +01:00 committed by Andrey Antukh
parent 6d3232e70a
commit 3ae92717da
3 changed files with 5 additions and 1 deletions

View file

@ -46,7 +46,9 @@
:uxbox.services.users/username-already-exists
(swap! form assoc-in [:errors :username]
{:type ::api
:message "errors.api.form.username-already-exists"})))
:message "errors.api.form.username-already-exists"})
(st/emit! (tr "errors.api.form.unexpected-error"))))
(defn- on-submit
[event form]