mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-09-18 14:18:20 +03:00
Add mobile interface and add handle metrics
This commit is contained in:
@@ -32,7 +32,11 @@ export const userService = {
|
||||
},
|
||||
|
||||
updateProfile: async (data: UserUpdate): Promise<User> => {
|
||||
const response = await apiClient.put('/users/me', data);
|
||||
// Filter out empty strings to avoid validation errors
|
||||
const filteredData = Object.fromEntries(
|
||||
Object.entries(data).filter(([_, value]) => value !== '')
|
||||
);
|
||||
const response = await apiClient.put('/users/me', filteredData);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user