improve profile

This commit is contained in:
Nicola Malizia
2025-10-10 20:17:57 +02:00
parent 7c4feddfa5
commit bc21450776
7 changed files with 576 additions and 97 deletions

View File

@@ -35,6 +35,12 @@ function CelebrityProfile() {
const handleFieldSave = async (fieldName, newValue) => {
// Converte stringa vuota a null per il backend
const valueToSend = newValue === '' ? null : newValue;
// Converti la stringa 'true'/'false' in un booleano per il campo specifico
if (fieldName === 'boobs_are_natural') {
valueToSend = newValue === 'true';
}
const payload = { [fieldName]: valueToSend };
try {