From ee003e45b4b4d77a2745edb834ebb1c94219bc2a Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Wed, 1 Nov 2023 04:24:38 +0530 Subject: [PATCH] fix: improve the early adopters plan input section (#609) --- apps/marketing/src/components/(marketing)/widget.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx index c9e1d91cc..7fd4aaa49 100644 --- a/apps/marketing/src/components/(marketing)/widget.tsx +++ b/apps/marketing/src/components/(marketing)/widget.tsx @@ -226,7 +226,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { type="button" className="bg-primary h-full w-14 rounded" disabled={!field.value || !!errors.email?.message} - onClick={() => onNextStepClick()} + onClick={() => step === 'EMAIL' && onNextStepClick()} > Next @@ -303,7 +303,10 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
{stepsRemaining} step(s) until signed
++ {isValid ? 'Ready for Signing' : `${stepsRemaining} step(s) until signed`} +
+Minimise contract