                (let [{:keys [applications countries user-country]} data]
                  (swap! state assoc :applications applications
                         :countries countries
-                        :all-applications applications
+                        :all-applications applications ;; use original applications list to build issuer list
                         )))}))
 
 

                                 (.preventDefault %)
                                 (swap! state assoc :show-issuer-info true
                                        :issuer-content {:id issuer_content_id :name issuer_content_name :image issuer_image :url issuer_content_url :banner banner})
                                 (issuer-badges issuer_content_name state)

                                 )}
               [:div {:style {:padding "5px"}} (if issuer_image

           [:a {:style {:cursor "pointer" :text-align "center"} :data-dismiss "modal" :on-click #(do
                                                                                                   (swap! state assoc :show-issuer-info false
                                                                                                          :issuer-content {:name (t :core/All) #_(t :badge/Issuers)})
                                                                                                   (issuer-applications "" state))} (t :core/All)]]
          (doall
            (for [app (sort-by :issuer_content_name (distinct-by :issuer_content_name @applications))
                  :let [{:keys [issuer_content_name issuer_image issuer_content_url issuer_content_id]} app
                        badges-count (issuer-applications-count issuer_content_name state)
                        ;testing
                        banner (if (even? (count issuer_content_name)) true false)]]
              [:a { :key issuer_content_id
