Skip to content

Commit

Permalink
fix(upload-core): fix for pending decryption status
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoler committed Apr 18, 2018
1 parent 236e8cd commit d05df81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/upload-core/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ class Upload {

if (uploadResult === 'encrypted') {
// needs pw, isDecrypting, isScanning
if (!this.waitForPw && decryptResult === null) {
if (
!this.waitForPw &&
(decryptResult === null || decryptResult === 'pending')
) {
return { status: 'pending', message: msg || '' };
}
if (decryptResult === 'rejected') {
Expand Down

0 comments on commit d05df81

Please sign in to comment.