Escape address so newlines and spaces don't interfere

Signed-off-by: shivekkhurana <shivek@status.im>
This commit is contained in:
shivekkhurana 2020-11-12 20:31:39 +05:30
parent 30753f8766
commit fbb606b859
No known key found for this signature in database
GPG Key ID: 9BEB56E6E62968C7
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@
:text-align-vertical :top :text-align-vertical :top
:on-change-text #(do :on-change-text #(do
(re-frame/dispatch [:set-in [:wallet/recipient :searching] :searching]) (re-frame/dispatch [:set-in [:wallet/recipient :searching] :searching])
(debounce/debounce-and-dispatch [:wallet.recipient/address-changed %] 600)) (debounce/debounce-and-dispatch [:wallet.recipient/address-changed (utils/safe-trim %)] 600))
:accessibility-label :recipient-address-input}]] :accessibility-label :recipient-address-input}]]
[react/view {:align-items :center :height 30 :padding-bottom 8} [react/view {:align-items :center :height 30 :padding-bottom 8}
(if searching (if searching