Fix key backup not working without phrase
This commit is contained in:
parent
3fdd42706d
commit
ba084c0a10
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
const processInput = async ({ key, phrase }) => {
|
const processInput = async ({ key, phrase }) => {
|
||||||
setProcess(true);
|
setProcess(true);
|
||||||
try {
|
try {
|
||||||
const { salt, iterations } = sSKeyInfo.passphrase;
|
const { salt, iterations } = sSKeyInfo.passphrase || {};
|
||||||
const privateKey = key
|
const privateKey = key
|
||||||
? mx.keyBackupKeyFromRecoveryKey(key)
|
? mx.keyBackupKeyFromRecoveryKey(key)
|
||||||
: await deriveKey(phrase, salt, iterations);
|
: await deriveKey(phrase, salt, iterations);
|
||||||
|
|
Loading…
Reference in a new issue