fix exception at fetching of the contacts

This commit is contained in:
Roman Volosovskyi 2016-06-01 19:42:38 +03:00
parent bf6d4ef256
commit 084f067ae8
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@
[clojure.string :as s] [clojure.string :as s]
[status-im.utils.utils :refer [http-post]] [status-im.utils.utils :refer [http-post]]
[status-im.utils.phone-number :refer [format-phone-number]] [status-im.utils.phone-number :refer [format-phone-number]]
[status-im.utils.handlers :as u])) [status-im.utils.handlers :as u]
[status-im.utils.utils :refer [require]]))
(defn save-contact (defn save-contact
[_ [_ contact]] [_ [_ contact]]
@ -26,7 +27,7 @@
(register-handler :load-contacts load-contacts!) (register-handler :load-contacts load-contacts!)
;; TODO see https://github.com/rt2zz/react-native-contacts/issues/45 ;; TODO see https://github.com/rt2zz/react-native-contacts/issues/45
(def react-native-contacts #_(js/require "react-native-contacts")) (def react-native-contacts (require "react-native-contacts"))
(defn contact-name [contact] (defn contact-name [contact]
(->> contact (->> contact