👔 (necktie) add logic to store the cookies

This commit is contained in:
2025-10-12 00:12:42 +07:00
parent 94f6f0780c
commit 273db57e7b
4 changed files with 29 additions and 3 deletions

View File

@ -6,6 +6,8 @@ import { SubmitHandler, useForm } from "react-hook-form";
import { submitRegisterForm } from "../../lib/submitRegisterForm";
import { zodResolver } from "@hookform/resolvers/zod";
import { registerFormSchema } from "../../models/registerForm.schema";
import { COOKIE_KEYS } from "@/shared/constants/cookie.key";
import { useRunOnce } from "@/shared/hooks/useRunOnce";
type Props = {
fullname: string;
@ -43,7 +45,6 @@ const ProvisionInput = ({ fullname }: Props) => {
description: returnData.text.message,
});
} else {
console.log(returnData);
setSubmitStatus(false);
addToast({
color: "success",