|
|
@@ -307,6 +307,7 @@ const submitUpdate = async () => {
|
|
|
|
|
|
try {
|
|
|
const userData = { ...getUpdatedFields.value };
|
|
|
+ console.log("Campos atualizados:", userData);
|
|
|
|
|
|
let data = null;
|
|
|
|
|
|
@@ -347,8 +348,7 @@ onMounted(() => {
|
|
|
form.gender = data.gender || "";
|
|
|
form.name = data.name || "";
|
|
|
form.phone = data.phone || "";
|
|
|
- form.push_notifications_enabled = data.push_notifications_enabled ??4
|
|
|
- false;
|
|
|
+ form.push_notifications_enabled = data.push_notifications_enabled ?? false;
|
|
|
profilePhoto.value = data.profile_photo || null;
|
|
|
providerId.value = data.provider_id || data.provider?.id || null;
|
|
|
userId.value = data.id;
|