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:
parent
61dd158af7
commit
dad4d87d9f
|
|
@ -277,7 +277,7 @@ export default function App() {
|
||||||
await axios.put(`${API_BASE}/api/auth/profile`, {
|
await axios.put(`${API_BASE}/api/auth/profile`, {
|
||||||
full_name: profileDisplayName,
|
full_name: profileDisplayName,
|
||||||
phone_number: profilePhone,
|
phone_number: profilePhone,
|
||||||
// country: profileCountry // Commented out: backend ProfileUpdateRequest strictly forbids extra inputs
|
country: profileCountry,
|
||||||
}, {
|
}, {
|
||||||
headers: { 'Authorization': `Bearer ${userToken}` }
|
headers: { 'Authorization': `Bearer ${userToken}` }
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue