From: Ajay Bura Date: Sun, 1 May 2022 12:02:29 +0000 (+0530) Subject: Fix key backup not working without phrase X-Git-Tag: v2.0.0~24 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=ba084c0a102ebb3d41596d9d9726e2af8d3f0a9d;p=cinny.git Fix key backup not working without phrase --- 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);