Skip to content

Commit d3acae2

Browse files
authored
πŸ› fix: νšŒμ›κ°€μž… ν›„ 둜그인이 λ˜μ§€ μ•ŠλŠ” ν˜„μƒ ν•΄κ²° (#203)
1 parent ae9b994 commit d3acae2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

β€Žsrc/features/auth/signup/components/SignupForm.tsxβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { toast } from 'sonner';
88

99
import { FormInput } from '@/shared/components/form-input/form-input';
1010

11+
import { signup } from '../../api/auth.api';
1112
import { SignupFormType, signupSchema } from '../../validators/auth.schema';
1213

1314
export const SignupForm = () => {
@@ -23,8 +24,9 @@ export const SignupForm = () => {
2324

2425
const router = useRouter();
2526

26-
const onSubmit: SubmitHandler<SignupFormType> = async () => {
27+
const onSubmit: SubmitHandler<SignupFormType> = async (data) => {
2728
try {
29+
await signup(data);
2830
toast.success('νšŒμ›κ°€μž… 성곡');
2931
router.push('./login');
3032
} catch (error) {

0 commit comments

Comments
Β (0)