Show error on wrong security key

This commit is contained in:
Ajay Bura 2022-05-01 17:40:47 +05:30
parent ba084c0a10
commit 8c227843c9

View file

@ -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 || {};