diff --git a/src/main/lemondronor/advisorycircular.cljs b/src/main/lemondronor/advisorycircular.cljs index f28220f..62626d4 100644 --- a/src/main/lemondronor/advisorycircular.cljs +++ b/src/main/lemondronor/advisorycircular.cljs @@ -111,7 +111,7 @@ (defn adsbx-url [{:keys [url lat lon radius-nm rapid-api?]}] - (if (or lat lon radius-nm) + (if (or lat lon) (do (when-not (and lat lon radius-nm) (throw (js/Error. "Need all of :lat, :lon, and :radius-nm"))) @@ -130,7 +130,7 @@ (defn adsbx-headers [{:keys [url api-key api-whitelist rapid-api?]}] - (cond-> (if rapid-api? + (cond-> (if rapid-api? {:x-rapidapi-key api-key :x-rapidapi-host (:host (c-url/url url)) :useQueryString true}