From: Ajay Bura Date: Sun, 1 May 2022 12:10:47 +0000 (+0530) Subject: Show error on wrong security key X-Git-Tag: v2.0.0~23 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=8c227843c99dc31e5ae60145ca97ea272ed5173f;p=cinny.git Show error on wrong security key --- diff --git a/src/app/organisms/settings/SecretStorageAccess.jsx b/src/app/organisms/settings/SecretStorageAccess.jsx index 9e53a33..e4fceb0 100644 --- a/src/app/organisms/settings/SecretStorageAccess.jsx +++ b/src/app/organisms/settings/SecretStorageAccess.jsx @@ -24,11 +24,11 @@ function SecretStorageAccess({ onComplete }) { const [process, setProcess] = useState(false); const [error, setError] = useState(null); const mountStore = useStore(); - mountStore.setItem(true); const toggleWithPhrase = () => setWithPhrase(!withPhrase); const processInput = async ({ key, phrase }) => { + mountStore.setItem(true); setProcess(true); try { const { salt, iterations } = sSKeyInfo.passphrase || {};