                        :type            "radio"
                        :on-change       #(do
                                            (set-visibility "public" state)
-                                           (save-settings state init-data))
+                                           (save-settings state init-data "share"))
                        :default-checked (= "public" (get-in @state [:badge-settings :visibility]))}]
          [:i {:class "fa fa-globe" }]
          [:label {:for "visibility-public"}

            [salava.core.ui.rate-it :as r]
            [salava.badge.ui.my :as my]))

(defn set-visibility [visibility state]
  (swap! state assoc-in [:badge-settings :visibility] visibility))


                 :rating       (if (pos? rating) rating nil)
                 :evidence-url evidence_url}
       :handler (fn []
                  (if (= "share" context)
                    (update-settings id state)
                    (init-data state id nil)))})))


(defn toggle-recipient-name [id show-recipient-name-atom]
  (let [new-value (not @show-recipient-name-atom)]
