bug #5214 - allows empty recipient only in dapp transactions (for contract creation)

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-07-18 12:05:47 +02:00
parent 62bab5150e
commit 77ad488765
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
1 changed files with 1 additions and 1 deletions

View File

@ -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