[#7898] remove pin from alert message

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
This commit is contained in:
Dmitry Novotochinov 2019-05-01 17:45:07 +03:00
parent 32f7f91e32
commit 32620e7f5b
No known key found for this signature in database
GPG Key ID: 43D1DAF5AD39C927
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,8 @@
[status-im.accounts.login.core :as accounts.login]
[status-im.accounts.recover.core :as accounts.recover]
[status-im.models.wallet :as models.wallet]
[status-im.utils.ethereum.mnemonic :as mnemonic]))
[status-im.utils.ethereum.mnemonic :as mnemonic]
[status-im.accounts.logout.core :as accounts.logout]))
(def default-pin "000000")
@ -653,8 +654,8 @@
(assoc-in [:hardwallet :pin] {:status nil
:error-label nil}))
:utils/show-popup {:title ""
:content (i18n/label :t/pin-changed {:pin pin})}}
(navigation/navigate-back))))
:content (i18n/label :t/pin-changed)}}
(accounts.logout/logout))))
(fx/defn on-change-pin-error
[{:keys [db]} error]

View File

@ -876,7 +876,7 @@
"pin-mismatch": "PIN does not match",
"tag-was-lost": "Tag was lost",
"cannot-use-default-pin": "PIN 000000 is not allowed.\nPlease use another number",
"pin-changed": "PIN has been changed to {{pin}}",
"pin-changed": "PIN has been changed",
"pin-retries-left": "You have {{number}} retries left",
"keycard-blocked": "Keycard has been blocked.\nYou need to reset card to continue using it.",
"reset-card": "Reset card",