Fix typo in key decryption

This commit is contained in:
Vishnu Mohandas 2020-10-03 20:11:19 +05:30
parent ad1e90dfcc
commit ca9e1b49c1

View file

@ -9,6 +9,6 @@ export const getActualKey = async () => {
const cryptoWorker = await new CryptoWorker();
const encryptedKey = getKey(SESSION_KEYS.ENCRYPTION_KEY).encryptionKey;
const session = getData(LS_KEYS.SESSION);
const key = await cryptoWorker.(encryptedKey, session.sessionNonce, session.sessionKey);
const key = await cryptoWorker.decryptToB64(encryptedKey, session.sessionNonce, session.sessionKey);
return key;
}