Skip to content

Commit b3bced3

Browse files
committed
_
1 parent b445f9e commit b3bced3

File tree

1 file changed

+2
-1
lines changed
  • src/status_im/ui/screens/profile/contact

1 file changed

+2
-1
lines changed

src/status_im/ui/screens/profile/contact/views.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
:icon :main-icons/add-contact
4040
:disabled blocked?
4141
:accessibility-label :add-to-contacts-button
42-
:action #(re-frame/dispatch [:contact.ui/add-to-contact-pressed public-key nil ens-name])}])
42+
:action (when-not blocked?
43+
#(re-frame/dispatch [:contact.ui/add-to-contact-pressed public-key nil ens-name]))}])
4344
[{:label (i18n/label (if (or muted? blocked?) :t/unmute :t/mute))
4445
:icon :main-icons/notification
4546
:accessibility-label :mute-chat

0 commit comments

Comments
 (0)