From 5b781921905a311a44bbbff68958eaaac3f8fe2d Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Sat, 15 Sep 2018 09:00:50 +0100 Subject: [PATCH] Wee tweek to the method detail prompt --- src/cljs/youyesyet/canvasser_app/views/followup.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cljs/youyesyet/canvasser_app/views/followup.cljs b/src/cljs/youyesyet/canvasser_app/views/followup.cljs index 2013901..dbc85c9 100644 --- a/src/cljs/youyesyet/canvasser_app/views/followup.cljs +++ b/src/cljs/youyesyet/canvasser_app/views/followup.cljs @@ -43,7 +43,7 @@ elector @(subscribe [:elector]) dwelling @(subscribe [:dwelling]) method @(subscribe [:followupmethod])] - (js/console.log (str "followup/panel; Issue is " issue "; elector is " elector "; method is " method)) + (js/console.log (str "followup/panel; Issue is " issue "; elector is " elector "; method is " method " (" (type method) ")")) (cond (nil? dwelling) (ui/error-panel "No dwelling selected") @@ -81,7 +81,7 @@ #(let [] [:option {:value (:id %) :key (:id %)} (:id %)]) @(subscribe [:followupmethods]))]] [:p.widget - [:label {:for "method_detail"} (if (= @(subscribe [:followupmethod]) "Phone") "Telephone number" "EMail Address")] + [:label {:for "method_detail"} (if (= (str @(subscribe [:followupmethod])) "Phone") "Telephone number" "EMail Address")] [:input {:type "text" :id "method_detail" :name "method_detail" :on-change #(dispatch [:set-method-detail (.-value (.-target %))])}]] [:p.widget