Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Handle wrong verification code when registering a new account (#1650)
Luke Vellae00c66955e12
diff --git a/apps/web/src/app/[locale]/(auth)/register/verify/components/otp-form.tsx b/apps/web/src/app/[locale]/(auth)/register/verify/components/otp-form.tsxindex fcc5289a0..a238e5777 100644--- a/apps/web/src/app/[locale]/(auth)/register/verify/components/otp-form.tsx+++ b/apps/web/src/app/[locale]/(auth)/register/verify/components/otp-form.tsx@@ -56,7 +56,10 @@ export function OTPForm({ token }: { token: string }) {});if (!res.user) {- throw new Error("Failed to authenticate user");+ form.setError("otp", {+ message: t("wrongVerificationCode"),+ });+ return;}queryClient.invalidate();