fix compilation warnings

This commit is contained in:
Eric Dvorsak 2017-09-02 02:35:02 +02:00 committed by Andrey Shovkoplyas
parent bc37283cb7
commit c46a465b98
2 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,7 @@
(ns status-im.chat.views.input.validation-messages
(:require-macros [status-im.utils.views :refer [defview]])
(:require [status-im.components.react :as c]
(:require-macros [status-im.utils.views :refer [defview letsubs]])
(:require [re-frame.core :as re-frame]
[status-im.components.react :as c]
[status-im.chat.styles.input.validation-message :as style]
[status-im.utils.listview :as lw]
[status-im.i18n :as i18n]))
@ -17,7 +18,7 @@
markup])
(defview validation-messages-view []
[chat-input-margin [:chat-input-margin]
(letsubs [chat-input-margin [:chat-input-margin]
input-height [:chat-ui-props :input-height]
messages [:chat-ui-props :validation-messages]]
(when messages
@ -25,4 +26,4 @@
(if (string? messages)
[messages-list [validation-message {:title (i18n/label :t/error)
:description messages}]]
[messages-list messages])]))
[messages-list messages])])))

View File

@ -84,6 +84,6 @@
(handlers/register-handler-db
:update-prices-fail
(fn [_ [_ err]]
(fn [db [_ err]]
(log/debug "Unable to get prices: " err)
(set-error-message db :error)))