Skip to content

Commit

Permalink
send Date string to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Jan 12, 2025
1 parent 768fe3d commit c8d3420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Users/CreateUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default function CreateUserForm({ onSubmitSuccess }: Props) {
email: data.email,
phone_number: data.phone_number,
alt_phone_number: data.alt_phone_number,
date_of_birth: data.date_of_birth,
date_of_birth: data.date_of_birth?.toISOString(),
geo_organization: data.geo_organization,
user_type: data.user_type,
gender: data.gender,
Expand Down
2 changes: 1 addition & 1 deletion src/types/user/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type UserCreateRequest = {
email: string;
phone_number: string;
alt_phone_number?: string;
date_of_birth: Date;
date_of_birth: string;
qualification?: string;
doctor_experience_commenced_on?: string;
doctor_medical_council_registration?: string;
Expand Down

0 comments on commit c8d3420

Please sign in to comment.