From bd05c37d623be6c3459d817e4cf063959eb9cebd Mon Sep 17 00:00:00 2001
From: Lasse Fredheim <lass@uio.no>
Date: Mon, 8 May 2023 11:07:00 +0200
Subject: [PATCH] Catch errors when submitting registration

---
 frontend/src/routes/sponsor/register/stepRegistration.tsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/frontend/src/routes/sponsor/register/stepRegistration.tsx b/frontend/src/routes/sponsor/register/stepRegistration.tsx
index 1d3c72b0..3aa461a7 100644
--- a/frontend/src/routes/sponsor/register/stepRegistration.tsx
+++ b/frontend/src/routes/sponsor/register/stepRegistration.tsx
@@ -124,6 +124,7 @@ export default function StepRegistration() {
           })
         }
       })
+      .catch()
       .finally(() => {
         setSubmitState(SubmitState.SubmitSuccess)
         setActiveStep(Steps.SuccessStep)
-- 
GitLab