From 484c38abfbf09471c22134a4270753eb9b14e6fb Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sat, 11 May 2024 19:07:41 +0200 Subject: [PATCH] fix: loading error in signup Fixed an error in which the loading state (button disabled) was completed before the sign up was completed --- src/app/(auth)/sign-up/signup-form.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/(auth)/sign-up/signup-form.tsx b/src/app/(auth)/sign-up/signup-form.tsx index c5dc1f48..d6162ba6 100644 --- a/src/app/(auth)/sign-up/signup-form.tsx +++ b/src/app/(auth)/sign-up/signup-form.tsx @@ -104,6 +104,7 @@ export function SignUpForm() { if (result.status === "complete") { await setActive({ session: result.createdSessionId }); setSignUpComplete(true); + return; } } catch (e) { console.error("Problem with the sign-in process");