mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-30 18:35:37 +00:00
[#13059] 'Cannot read property' error on scanning invalid key
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
4bf393ec3d
commit
dc8cbcde56
@ -76,7 +76,8 @@
|
|||||||
(callback {:type :contact
|
(callback {:type :contact
|
||||||
:public-key user-id})
|
:public-key user-id})
|
||||||
|
|
||||||
(and (not valid-key) (string? user-id))
|
(and (not valid-key) (string? user-id) (not (string/blank? user-id))
|
||||||
|
(not= user-id "0x"))
|
||||||
(let [registry (get ens/ens-registries chain)
|
(let [registry (get ens/ens-registries chain)
|
||||||
ens-name (resolver/ens-name-parse user-id)
|
ens-name (resolver/ens-name-parse user-id)
|
||||||
on-success #(match-contact-async chain {:user-id %} callback)]
|
on-success #(match-contact-async chain {:user-id %} callback)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user