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 23, 2022
1 parent 870755f commit fc15e39
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/screens/upload/flow/steps/upload/UploadStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,16 @@ const UploadStep = ({ nextStep }) => {
}
},
onStatusChange: (message) => setInfoMessage(message),
}).then((link) => {
setDownloadLink({ link })
nextStep?.()
})
.then((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 fc15e39

Please sign in to comment.