       [:button.issuer-button {:class (str "btn form-control btn-active")
                               :id "btn-all"
                               :on-click #(do
-                                           (m/modal! [open-issuer-modal state] {:size :md}))} (str @issuer-name)]]]))
+                                           (m/modal! [open-issuer-modal state] {:size :md :shown (fn [] (init-issuer-applications state)) }))} (str @issuer-name)]]]))


(defn issuer-content-modal [state]
  (let [applications (cursor state [:all-applications])
        issuer-name (cursor state [:issuer-content :name])]
    (fn []
      [:div#badge-content
       [:div.modal-body

  (fetch-badge-adverts state))

(defn issuer-applications-count [issuer-name state]
  (count (filter #(= issuer-name (:issuer_content_name %)) (:all-issuer-applications @state))))

(defn- issuer-image [path]
