   (atom {:selected [:details]
          :rsvp-search {:name ""
                        :results nil
+                       :error nil
                        :party {}}
          :party {}
          :selection {:party nil

            :name "New York Loft Hostel"
            :notes "249 Varet St., Brooklyn ($)"}])]]))

(defn rsvp-search-view [{:keys [name results] :as data} owner]
  (reify om/IRender
    (render [_]
      (html

        [:h2 "RSVP"]
        [:form {:id "rsvpsearch"
                :onSubmit #(do (.. % (preventDefault))
                               (go (if (>= (count name) 3)
                                     (do (om/update! data :error nil)
                                         (let [guests (<! (search-guests name))]
                                           (om/update! data :results guests)
                                           (when (= 1 (count guests))
                                             (select-party! owner (get-in guests [0 :party])))))
                                     (om/update! data :error "Please enter three or more characters."))))}
         [:label {:for "guestsearch"} "Enter the name on your invitation:"]
         [:input {:type "text"
                  :name "guestseearch"
