Closed aarxa closed 2 months ago
i think the problem at the contants>index.ts. I do this export type Gender = "Male" | "Female" | "Other";
i think the problem at the contants>index.ts. I do this export type Gender = "Male" | "Female" | "Other";
I tried that but if I assign it as a type how can I use it as a value in RegisterForm.tsx
I'm having the same issue. @aarxa how did you resolve it?
For anyone who might be facing this issue later, the problem is coming from the appwrite db. the enums value in the gender attributes were registered as 'male','female','other'. so you can change that to "Male"... on appwrite or just change the enum value in the validation.ts and the genderOptions in the /constants/index.ts to "male"...
I keep facing this error, can someone help? I checked the index.ts file and the CustomFormField and it all looks great.