diff --git a/frontend/src/app/main/data/notifications.cljs b/frontend/src/app/main/data/notifications.cljs index 7babc171c6..703d8df68e 100644 --- a/frontend/src/app/main/data/notifications.cljs +++ b/frontend/src/app/main/data/notifications.cljs @@ -51,15 +51,12 @@ [:label :string] [:callback ::sm/fn]]]]]) -(def ^:private valid-notification? - (sm/validator schema:notification)) +(def ^:private check-notification + (sm/check-fn schema:notification)) (defn show [data] - - (dm/assert! - "expected valid notification map" - (valid-notification? data)) + (assert (check-notification data) "expected valid notification map") (ptk/reify ::show ptk/UpdateEvent