Skip to content

Commit

Permalink
fix(upload): error page not always showing
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Jan 11, 2024
1 parent 4ce1b67 commit 26de473
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/components/UploadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ async function submitUpload (base64: string, fileName: string) {
img: base64,
imgUrl: data.path,
})
} catch (error) {
// TODO: Afficher l’erreur à l’utilisateur
router.push({ name: 'ErrorPage' })
} finally {
const nextRoute = getNextRouteAfterResult({
securingTutorial: resultStore.securingTutorial,
confidenceLevel: resultStore.confidenceLevel,
typology: resultStore.typology,
})
router.push(nextRoute)
} catch (error) {
console.log(error)
router.push({ name: 'ErrorPage' })
}
}
Expand Down

0 comments on commit 26de473

Please sign in to comment.