 ;; -------------------------
 ;; Components
 
-(defn email-confirmed [v1 v2]
-  (and (not (nil? v1)) (= v1 v2)))
 
 (defn defn-form-content [app-atom]
   [:form {:class "defnForm"}

             :on-change (fn [evt]
                          (swap! app-atom assoc :email-confirm evt.target.value))}]
    [:span {:class "emailConfirm"}
     (if (email-confirmed (get @app-atom :email) (get @app-atom :email-confirm)) 
       [:span {:class "check"} "\u2714"]
       [:span {:class "x-mark"} "\u2718"])]
    [:textarea {:class "defnInput twelve columns"

        (.then save-defn-promise #(js/console.log "saved xtra data"))
        (.fail save-defn-promise (fn [err]
                                 (js/console.error err)))))))

(defn get-defn [idx]
  (js/Parse.Cloud.run
   "getDefn"
