diff --git a/src/app/organisms/settings/SecretStorageAccess.jsx b/src/app/organisms/settings/SecretStorageAccess.jsx index f0131b1..9e53a33 100644 --- a/src/app/organisms/settings/SecretStorageAccess.jsx +++ b/src/app/organisms/settings/SecretStorageAccess.jsx @@ -31,7 +31,7 @@ function SecretStorageAccess({ onComplete }) { const processInput = async ({ key, phrase }) => { setProcess(true); try { - const { salt, iterations } = sSKeyInfo.passphrase; + const { salt, iterations } = sSKeyInfo.passphrase || {}; const privateKey = key ? mx.keyBackupKeyFromRecoveryKey(key) : await deriveKey(phrase, salt, iterations);