diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx
index ba30833ab..d81888463 100644
--- a/apps/marketing/src/components/(marketing)/widget.tsx
+++ b/apps/marketing/src/components/(marketing)/widget.tsx
@@ -391,6 +391,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
diff --git a/packages/trpc/server/auth-router/router.ts b/packages/trpc/server/auth-router/router.ts
index ecb01cca3..f66f44325 100644
--- a/packages/trpc/server/auth-router/router.ts
+++ b/packages/trpc/server/auth-router/router.ts
@@ -12,12 +12,16 @@ export const authRouter = router({
return await createUser({ name, email, password, signature });
} catch (err) {
- console.error(err);
+ let message =
+ 'We were unable to create your account. Please review the information you provided and try again.';
+
+ if (err instanceof Error && err.message === 'User already exists') {
+ message = 'User with this email already exists. Please use a different email address.';
+ }
throw new TRPCError({
code: 'BAD_REQUEST',
- message:
- 'We were unable to create your account. Please review the information you provided and try again.',
+ message,
});
}
}),
diff --git a/packages/ui/primitives/document-flow/document-flow-root.tsx b/packages/ui/primitives/document-flow/document-flow-root.tsx
index 96a0e18b1..a88a7627a 100644
--- a/packages/ui/primitives/document-flow/document-flow-root.tsx
+++ b/packages/ui/primitives/document-flow/document-flow-root.tsx
@@ -97,10 +97,7 @@ export const DocumentFlowFormContainerStep = ({
return (
- {title}{' '}
-
- ({step}/{maxStep})
-
+ Step {`${step} of ${maxStep}`}