improvement: appointment dialog UX improved.

This commit is contained in:
2026-07-12 22:07:11 +03:30
parent 53b43f2cdb
commit abf0371a5b
18 changed files with 1006 additions and 759 deletions

View File

@@ -14,7 +14,12 @@ export const patientsApi = {
},
create: async (data: CreatePatientInput): Promise<CreatePatientResponse> => {
const response = await apiClient.post('/patients', data);
const { email, ...rest } = data;
const body = {
...rest,
...(email?.trim() ? { email: email.trim() } : {}),
};
const response = await apiClient.post('/patients', body);
return response.data;
},