From 8c227843c99dc31e5ae60145ca97ea272ed5173f Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sun, 1 May 2022 17:40:47 +0530 Subject: [PATCH] Show error on wrong security key --- src/app/organisms/settings/SecretStorageAccess.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organisms/settings/SecretStorageAccess.jsx b/src/app/organisms/settings/SecretStorageAccess.jsx index 9e53a333..e4fceb07 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 || {};