mirror of
https://github.com/status-im/status-react.git
synced 2025-01-23 01:09:49 +00:00
Delete account name if setting recipient manually
This commit is contained in:
parent
33af176246
commit
dc7724f88b
@ -83,7 +83,9 @@
|
||||
(if (ethereum/address? recipient)
|
||||
(let [checksum (eip55/address->checksum recipient)]
|
||||
(if (eip55/valid-address-checksum? checksum)
|
||||
{:db (assoc-in db [:wallet :send-transaction :to] checksum)
|
||||
{:db (-> db
|
||||
(assoc-in [:wallet :send-transaction :to] checksum)
|
||||
(assoc-in [:wallet :send-transaction :to-name] nil))
|
||||
:dispatch [:navigate-back]}
|
||||
{:ui/show-error (i18n/label :t/wallet-invalid-address-checksum {:data recipient})}))
|
||||
{:ui/show-error (i18n/label :t/wallet-invalid-address {:data recipient})}))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user