From 2a7c58ad258e1505982a7f3771541c86df45f6b2 Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Mon, 28 May 2018 15:06:03 +0200 Subject: [PATCH] Use MaskedData check in the app-db for wallet's password. Fixes the regression introduced in `789ee61`, leading to being unable to sign transactions. Signed-off-by: Igor Mandrigin --- src/status_im/ui/screens/wallet/send/db.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/ui/screens/wallet/send/db.cljs b/src/status_im/ui/screens/wallet/send/db.cljs index 469a47d8e7..1ec76e7603 100644 --- a/src/status_im/ui/screens/wallet/send/db.cljs +++ b/src/status_im/ui/screens/wallet/send/db.cljs @@ -1,14 +1,15 @@ (ns status-im.ui.screens.wallet.send.db (:require-macros [status-im.utils.db :refer [allowed-keys]]) (:require [cljs.spec.alpha :as spec] - [status-im.utils.money :as money])) + [status-im.utils.money :as money] + [status-im.utils.security :as security])) (spec/def ::amount (spec/nilable money/valid?)) (spec/def ::to (spec/nilable string?)) (spec/def ::to-name (spec/nilable string?)) (spec/def ::amount-error (spec/nilable string?)) (spec/def ::amount-text (spec/nilable string?)) -(spec/def ::password (spec/nilable string?)) +(spec/def ::password (spec/nilable #(instance? security/MaskedData %))) (spec/def ::wrong-password? (spec/nilable boolean?)) (spec/def ::id (spec/nilable string?)) (spec/def ::waiting-signal? (spec/nilable boolean?))