From bd941202c873b360930ab9e49cb92e9f60f896ce Mon Sep 17 00:00:00 2001 From: hallidayo <22655069+Hallidayo@users.noreply.github.com> Date: Thu, 5 Oct 2023 01:25:09 +0100 Subject: [PATCH 1/3] changed text of stepper (#513) --- packages/ui/primitives/document-flow/document-flow-root.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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}`}

From eac7aa84b031ec1a51fd36521b4d45d54ce88475 Mon Sep 17 00:00:00 2001 From: zahid47 Date: Thu, 5 Oct 2023 07:54:52 +0600 Subject: [PATCH 2/3] fix: add defaultValue to SignaturePad to persist signatures (#522) * fix: add defaultValue to SignaturePad to persist signatures --- apps/marketing/src/components/(marketing)/widget.tsx | 1 + 1 file changed, 1 insertion(+) 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) => { From 49d55227e8ad166319ead07204bc2e1c1434335b Mon Sep 17 00:00:00 2001 From: Anjy Gupta <92802904+anjy7@users.noreply.github.com> Date: Thu, 5 Oct 2023 15:29:43 +0530 Subject: [PATCH 3/3] fix: sign up with existing account email bug (#517) * fix: sign up with existing account email bug --- packages/trpc/server/auth-router/router.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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, }); } }),