Fix: Downloading with password enabled (#246)

* Fix: Downloading with password enabled

* Update src/hooks/useDownloader.ts

---------

Co-authored-by: Alex Kern <alex@kern.io>
pull/248/head
Parthiban M 9 months ago committed by GitHub
parent 327dcc3581
commit b5f1c42d26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -86,6 +86,7 @@ export function useDownloader(uploaderPeerID: string): {
break break
case MessageType.Info: case MessageType.Info:
setFilesInfo(message.files) setFilesInfo(message.files)
setIsPasswordRequired(false)
break break
case MessageType.Chunk: case MessageType.Chunk:
processChunk.current?.(message) processChunk.current?.(message)

Loading…
Cancel
Save