From 5749f76be55cfd998caf67dc0857755c17438398 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Sat, 2 Jul 2016 15:03:31 +0300 Subject: [PATCH] fix staged response name --- src/status_im/chat/views/staged_command.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/status_im/chat/views/staged_command.cljs b/src/status_im/chat/views/staged_command.cljs index 424367c56e..4930192bce 100644 --- a/src/status_im/chat/views/staged_command.cljs +++ b/src/status_im/chat/views/staged_command.cljs @@ -11,12 +11,15 @@ (dispatch [:unstage-command staged-command])) (defn simple-command-staged-view [staged-command] - (let [command (:command staged-command)] + (let [{:keys [type name] :as command} (:command staged-command)] [view st/staged-command-container [view st/staged-command-background [view st/staged-command-info-container [view (st/staged-command-text-container command) - [text {:style st/staged-command-text} (str "!" (:name command))]] + [text {:style st/staged-command-text} + (if (= :command type) + (str "!" name) + name)]] [touchable-highlight {:style st/staged-command-cancel :onPress #(cancel-command-input staged-command)} [image {:source res/icon-close-gray