diff --git a/src/app/favicon.ico b/src/app/favicon.ico index 718d6fea..381da129 100644 Binary files a/src/app/favicon.ico and b/src/app/favicon.ico differ diff --git a/src/app/solicitar-ayuda/_components/Form/FormContainer.tsx b/src/app/solicitar-ayuda/_components/Form/FormContainer.tsx index ce94b157..65a5f042 100644 --- a/src/app/solicitar-ayuda/_components/Form/FormContainer.tsx +++ b/src/app/solicitar-ayuda/_components/Form/FormContainer.tsx @@ -33,7 +33,7 @@ export function FormContainer() { const session = useSession(); const [formData, setFormData] = useState({ - nombre: session?.user?.user_metadata?.full_name.split(" ")[0]|| '', + nombre: session?.user?.user_metadata?.full_name || session?.user?.user_metadata?.nombre || ''.split(' ')[0], ubicacion: '', coordinates: null, tiposDeAyuda: new Map(TIPOS_DE_AYUDA.map(({ id }) => [id, false])), @@ -91,7 +91,7 @@ export function FormContainer() { try { const helpRequestData: Database['public']['Tables']['help_requests']['Insert'] = { type: 'necesita', - name: formData.nombre.split(" ")[0], + name: formData.nombre.split(' ')[0], location: formData.ubicacion, latitude: formData.coordinates ? parseFloat(formData.coordinates.lat) : null, longitude: formData.coordinates ? parseFloat(formData.coordinates.lng) : null,