diff --git a/src/wanijo/framework/form.clj b/src/wanijo/framework/form.clj index ddc116f..4e0bb98 100644 --- a/src/wanijo/framework/form.clj +++ b/src/wanijo/framework/form.clj @@ -35,7 +35,7 @@ (spec/explain-data spec-key field-value))))) (defn field-valid? [value spec-key req] - (or (empty? (:params req)) + (or (empty? (:form-params req)) (spec/valid? spec-key value))) (defn field