Show error on wrong security key
This commit is contained in:
parent
ba084c0a10
commit
8c227843c9
1 changed files with 1 additions and 1 deletions
|
@ -24,11 +24,11 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
const [process, setProcess] = useState(false);
|
const [process, setProcess] = useState(false);
|
||||||
const [error, setError] = useState(null);
|
const [error, setError] = useState(null);
|
||||||
const mountStore = useStore();
|
const mountStore = useStore();
|
||||||
mountStore.setItem(true);
|
|
||||||
|
|
||||||
const toggleWithPhrase = () => setWithPhrase(!withPhrase);
|
const toggleWithPhrase = () => setWithPhrase(!withPhrase);
|
||||||
|
|
||||||
const processInput = async ({ key, phrase }) => {
|
const processInput = async ({ key, phrase }) => {
|
||||||
|
mountStore.setItem(true);
|
||||||
setProcess(true);
|
setProcess(true);
|
||||||
try {
|
try {
|
||||||
const { salt, iterations } = sSKeyInfo.passphrase || {};
|
const { salt, iterations } = sSKeyInfo.passphrase || {};
|
||||||
|
|
Loading…
Reference in a new issue