OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.
Update app/(auth)/sign-up/page.tsx
Mr. Algorithm05d3cd2042c4
diff --git a/app/(auth)/sign-up/page.tsx b/app/(auth)/sign-up/page.tsxindex 741df70..8368cc1 100644--- a/app/(auth)/sign-up/page.tsx+++ b/app/(auth)/sign-up/page.tsx@@ -36,7 +36,13 @@ const SignUp = () => {const onSubmit = async (data: SignUpFormData) => {try {const result = await signUpWithEmail(data);- if(result.success) router.push('/');+ if (result.success) {+ router.push('/');+ return;+ }+ toast.error('Sign up failed', {+ description: result.error ?? 'We could not create your account.',+ });} catch (e) {console.error(e);toast.error('Sign up failed', {