Skip to content

Commit

Permalink
fix: check correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
g-tejas committed Aug 7, 2024
1 parent 2d4e835 commit 7de13de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ const useDecryptionWorkers = ({
// It's fine to hog on to the worker here while waiting for the browser
// rate limit to pass. If decryption is fast, we would wait regardless.
// If decryption is slow, we won't hit rate limits.
if (downloadAttachments && decryptResult.downloadBlob) {
if (downloadAttachments && decryptResult.downloadBlobURL) {
await downloadResponseAttachmentURL(
decryptResult.downloadBlobURL!,
decryptResult.downloadBlobURL,
decryptResult.id,
).then(() => {
URL.revokeObjectURL(decryptResult.downloadBlobURL!)
Expand Down

0 comments on commit 7de13de

Please sign in to comment.