From 77ad488765c9a9d74e9416740f167acee37d600b Mon Sep 17 00:00:00 2001 From: Goran Jovic Date: Wed, 18 Jul 2018 12:05:47 +0200 Subject: [PATCH] bug #5214 - allows empty recipient only in dapp transactions (for contract creation) Signed-off-by: Goran Jovic --- src/status_im/ui/screens/wallet/send/views.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/wallet/send/views.cljs b/src/status_im/ui/screens/wallet/send/views.cljs index 46c3b1fcc8..6515baf445 100644 --- a/src/status_im/ui/screens/wallet/send/views.cljs +++ b/src/status_im/ui/screens/wallet/send/views.cljs @@ -76,7 +76,7 @@ (defn- sign-enabled? [amount-error to amount modal?] (and (nil? amount-error) - (or modal? (not (nil? to)) (not= to "")) ;;NOTE(goranjovic) - contract creation will have empty `to` + (or modal? (not (empty? to))) ;;NOTE(goranjovic) - contract creation will have empty `to` (not (nil? amount)))) ;; "Sign Later" and "Sign Transaction >" buttons