summaryrefslogtreecommitdiff
path: root/src-migrate/modules/register/components/Form.tsx
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-11-13 06:13:25 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-11-13 06:13:25 +0000
commit69575d143e29eed51fa733238126341ebda280e8 (patch)
treef3f5f251a66fed452241768e900fdd60ae8af87c /src-migrate/modules/register/components/Form.tsx
parentfeea1a2602e22659fe73cb55e31c3d01f57218a4 (diff)
parent5a9210e560ca47d8f4d8c43b06fc93d1d064a6f6 (diff)
Merged in refactor/all (pull request #115)
Add close on modal otp activation, change validation register schema, fix term and condition checkbox
Diffstat (limited to 'src-migrate/modules/register/components/Form.tsx')
-rw-r--r--src-migrate/modules/register/components/Form.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src-migrate/modules/register/components/Form.tsx b/src-migrate/modules/register/components/Form.tsx
index 63a84776..e9dc4906 100644
--- a/src-migrate/modules/register/components/Form.tsx
+++ b/src-migrate/modules/register/components/Form.tsx
@@ -19,9 +19,7 @@ const Form = () => {
validate,
} = useRegisterStore()
- const isFormValid = useMemo(() => {
- return Object.keys(errors).length === 0
- }, [errors])
+ const isFormValid = useMemo(() => Object.keys(errors).length === 0, [errors])
const router = useRouter()
const toast = useToast()