fixed error in photo path

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2018-04-05 11:50:13 +03:00
parent 7168896ffe
commit 66f90cfdbc
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 5 deletions

View File

@ -245,7 +245,8 @@
(defn- photo [from photo-path]
[react/view
[react/image {:source (if (string/starts-with? photo-path "contacts://")
[react/image {:source (if (and (not (string/blank? photo-path))
(string/starts-with? photo-path "contacts://"))
(->> (string/replace photo-path #"contacts://" "")
(keyword)
(get resources/contacts))