         (map-indexed repo-button state)))))  
 
 ;; {:auth - :repo -}
-(defn repo-config-panel [state onwer]
+(defn repo-config-panel [state owner]
   (reify
     om/IInitState
     (init-state [_]

(ns cloc-webapp.dash
  (:require-macros [cljs.core.async.macros :refer [go alt!]])
  (:require [goog.json :as json]
            [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]
            [cljs-http.client :as http])

       :auth (.get (Cookies. js/document) "session_id")})

    om/IRenderState
    (render-state [this state]  
      (let [repos (vec (get-in state [:me "repos"]))]  
        (prn repos)
        (dom/div nil
          (om/build repo-list-view repos)
          (om/build repo-detail-view {:repos repos
                                      :auth (:auth state)}))))))                                       

(om/root widget app-state {:target (.getElementById js/document "content")})
