fix(profile): re-enable country field in profile update payload

- Uncomment `country: profileCountry` in `PUT /api/auth/profile` request payload in `src/App.tsx`
- Align frontend profile submission with the updated backend `ProfileUpdateRequest` schema
This commit is contained in:
Urvish Prajapati 2026-09-11 14:46:38 +05:30
parent 61dd158af7
commit dad4d87d9f
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ export default function App() {
await axios.put(`${API_BASE}/api/auth/profile`, {
full_name: profileDisplayName,
phone_number: profilePhone,
// country: profileCountry // Commented out: backend ProfileUpdateRequest strictly forbids extra inputs
country: profileCountry,
}, {
headers: { 'Authorization': `Bearer ${userToken}` }
});