fix incorrect way of checking for the prefix portion of the event type

This commit is contained in:
Gered 2016-05-19 22:02:42 -04:00
parent 719b84daf3
commit 3993415171

View file

@ -1,9 +1,7 @@
(ns reagent-data-views.utils (ns reagent-data-views.utils)
(:require
[clojure.string :as string]))
(defn relevant-event? (defn relevant-event?
[data] [data]
(and (vector? data) (and (vector? data)
(keyword? (first data)) (keyword? (first data))
(string/starts-with? (name (first data)) "views/"))) (= (namespace (first data)) "views")))