diff --git a/src/main/frontend/handler/notification.cljs b/src/main/frontend/handler/notification.cljs index 3e2d45017b..40f2a8cf4b 100644 --- a/src/main/frontend/handler/notification.cljs +++ b/src/main/frontend/handler/notification.cljs @@ -26,6 +26,7 @@ ([content status clear? uid timeout] (show! content status clear? uid timeout nil)) ([content status clear? uid timeout close-cb] + (assert (keyword? status) "status should be a keyword") (let [contents (state/get-notification-contents) uid (or uid (keyword (util/unique-id)))] (state/set-state! :notification/contents (assoc contents diff --git a/src/main/frontend/ui.cljs b/src/main/frontend/ui.cljs index a2c71e9136..4fa7d1a415 100644 --- a/src/main/frontend/ui.cljs +++ b/src/main/frontend/ui.cljs @@ -295,7 +295,7 @@ (icon "info-circle" {:class "text-indigo-500" :size "20"})) status)] [:div.ui__notifications-content - {:class (str "notification-" (name (or status :info))) + {:class (str "notification-" (name (or (when (keyword? status) status) :info))) :style (when (or (= state "exiting") (= state "exited"))