🐛 Fix error screen when operations over comments fail

This commit is contained in:
alonso.torres 2021-10-05 09:33:59 +02:00
parent 4b1fa2589e
commit a052bfd2fa
4 changed files with 42 additions and 21 deletions

View file

@ -94,6 +94,14 @@
:type :error
:timeout 3000}))))
(defmethod ptk/handle-error :comment-error
[_]
(ts/schedule
(st/emitf
(dm/show {:content "There was an error with the comment"
:type :error
:timeout 3000}))))
;; This is a pure frontend error that can be caused by an active
;; assertion (assertion that is preserved on production builds). From
;; the user perspective this should be treated as internal error.