                       :configuration {:channels targets
                                       :url      url
                                       :username username
-                                      :emoji    emoji}}]
+                                      :emoji    (clean-emoji emoji)}}]
      {:http-xhrio {:method          :put
                    :uri             (str "/api/channels/" name)
                    :headers         {:authorization (str "Bearer " (:access-token db))}

           (fn [channels]
             (remove #(= (:name %) channel) channels)))))

(re-frame/reg-event-fx
 :channel-edit-submit
 (fn [{db :db} [_ {:keys [name type url targets username emoji days-before

                       :same_day      (:same-day reminder-config)
                       :days_before   (if (zero? days-before) nil days-before)
                       :configuration (-> channel-config
                                          (update :emoji clean-emoji)
                                          (assoc :channels targets)
                                          (dissoc :targets)
                                          (dissoc :name))}]
