diff --git a/src/status_im/common/standard_authentication/password_input/view.cljs b/src/status_im/common/standard_authentication/password_input/view.cljs index 50eb424b4489..044149f4cfac 100644 --- a/src/status_im/common/standard_authentication/password_input/view.cljs +++ b/src/status_im/common/standard_authentication/password_input/view.cljs @@ -7,6 +7,7 @@ [react-native.core :as rn] [status-im.common.standard-authentication.forgot-password-doc.view :as forgot-password-doc] [status-im.common.standard-authentication.password-input.style :as style] + [utils.debounce :as debounce] [utils.i18n :as i18n] [utils.re-frame :as rf] [utils.security.core :as security])) @@ -22,8 +23,9 @@ (defn- on-change-password [entered-password] - (rf/dispatch [:set-in [:profile/login :password] - (security/mask-data entered-password)]) + (debounce/debounce-and-dispatch [:set-in [:profile/login :password] + (security/mask-data entered-password)] + 100) (rf/dispatch [:set-in [:profile/login :error] ""])) (defn- view-internal