From ae000ec118214c0ef13d992ff22f3c6ceca7387d Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 3 Apr 2017 11:30:24 +0300 Subject: [PATCH] fixes https://github.com/status-im/status-react/issues/964 --- src/status_im/profile/screen.cljs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/status_im/profile/screen.cljs b/src/status_im/profile/screen.cljs index 824cb01851..d443d20217 100644 --- a/src/status_im/profile/screen.cljs +++ b/src/status_im/profile/screen.cljs @@ -64,7 +64,7 @@ [text {:style st/profile-activity-status-text} (online-text last-online)]])]]) -(defn profile-actions [{:keys [pending? whisper-identity]} chat-id] +(defn profile-actions [{:keys [pending? whisper-identity dapp?]} chat-id] [view actions-list (if pending? [action-button (label :t/add-to-contacts) @@ -76,10 +76,12 @@ [action-button (label :t/start-conversation) :chats_blue #(message-user whisper-identity)] - [action-separator] - [action-button (label :t/send-transaction) - :arrow_right_blue - #(dispatch [:open-chat-with-the-send-transaction chat-id])]]) + (when-not dapp? + [view + [action-separator] + [action-button (label :t/send-transaction) + :arrow_right_blue + #(dispatch [:open-chat-with-the-send-transaction chat-id])]])]) (defn profile-info-item [{:keys [label value options text-mode empty-value?]}] [view st/profile-setting-item