From dc7724f88b1563c406daa45b33ab1093371d375c Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Fri, 25 Oct 2019 14:14:08 -0400 Subject: [PATCH] Delete account name if setting recipient manually --- src/status_im/wallet/choose_recipient/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/wallet/choose_recipient/core.cljs b/src/status_im/wallet/choose_recipient/core.cljs index 143bed92e0..72b528400b 100644 --- a/src/status_im/wallet/choose_recipient/core.cljs +++ b/src/status_im/wallet/choose_recipient/core.cljs @@ -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})}))))