Skip to content

Commit

Permalink
fix: show error when quick upload timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pacorampas committed Feb 19, 2022
1 parent d1e8b90 commit 48916bd
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/screens/upload/flow/steps/upload/UploadStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,20 @@ const UploadStep = ({ nextStep }) => {
}
console.info(response)
},
onStatusChange: (message) => setInfoMessage(message),
}).then((link) => {
console.info(link)
setDownloadLink({ link })
nextStep?.()
onStatusChange: (message) => {
setInfoMessage(message)
},
})
.then((link) => {
console.info(link)
setDownloadLink({ link })
nextStep?.()
})
.catch((error) => {
console.info(error)
toast.error(`💩 ${error.message}`)
setUploadFailed(true)
})
break
case FILE_UPLOAD_TYPES.STORE:
storeEncryptedFile({
Expand Down

0 comments on commit 48916bd

Please sign in to comment.