       (POST "/api/memory" {:params        {:thought note}
                            :headers       {:authorization (str "Token " (get-in app-state [:credentials :token]))}
                            :handler       #(dispatch [:save-note-success note])
-                           :error-handler #(dispatch [:save-note-error (str "Error saving note: " %)])}))
+                           :error-handler #(dispatch [:save-note-error %])}))
     app-state
     ))
 

; Handlers
;------------------------------

(register-handler
  :initialize
  (fn [app-state _]


(register-handler
  :save-note-error
  (fn [app-state [_ result]]
    (dispatch [:set-message (str "Error saving note: " result) "alert-danger"])
    (-> app-state
        (assoc-in [:ui-state :is-busy?] false)
        (remove-token-on-unauth result))))


;------------------------------
