 
     om/IRenderState
     (render-state [_ {:keys [team1 team2]}]
-      (let [active-players (filterv :active players)
-            _  (debug (map (fn [p]  (str "'" (:name p) "'")) (selected-players report-match)))
+      (let [_  (debug (map (fn [p]  (str "'" (:name p) "'")) (selected-players report-match)))
             __ (debug (map (fn [kw] (get-in report-match [kw :score])) [:team1 :team2]))
-            render-team (partial render-team-controls report-match active-players)]
+            render-team (partial render-team-controls app)]
         (html
          [:div
           [:h1 "Report Match Result"]


(defn handle-player-update [report-match path player]
  (debug "handle update" path player)
  (om/update! report-match path player))

(defn report-match-component [{:keys [players report-match] :as app} owner]
  (reify
    om/IInitState
    (init-state [_]


(defn render [app]
  (if (:auth app)
    (om/build report-match-component app
              {:fn (fn [{:keys [report-match players]}]
                     {:report-match   report-match
                      :active-players (filterv :active players)})})
    (spinner)))
