diff --git a/frontend/src/fileReceiver.js b/frontend/src/fileReceiver.js index 7f57f777..2fa71c36 100644 --- a/frontend/src/fileReceiver.js +++ b/frontend/src/fileReceiver.js @@ -74,9 +74,7 @@ class FileReceiver extends EventEmitter { fdata.data ).then(decrypted => { this.emit('decrypting', false); - return new Promise((resolve, reject) => { - resolve(decrypted); - }) + return Promise.resolve(decrypted) }), fdata.filename, hexToArray(fdata.aad)