fix: stepsRemaining value of the early adopters plan's input section (#803)

This commit is contained in:
Anik Dhabal Babu
2024-01-08 13:39:34 +05:30
committed by GitHub
parent 6be119ac95
commit f9d26e6b3f

View File

@ -1,6 +1,7 @@
'use client';
import { HTMLAttributes, KeyboardEvent, useMemo, useState } from 'react';
import type { HTMLAttributes, KeyboardEvent } from 'react';
import { useMemo, useState } from 'react';
import { zodResolver } from '@hookform/resolvers/zod';
import { AnimatePresence, motion } from 'framer-motion';
@ -90,10 +91,10 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
}
if (step === STEP.EMAIL) {
return 1;
return 3;
}
return 3;
return 1;
}, [step]);
const onNextStepClick = () => {