Skip to content

Commit

Permalink
Merge branch 'main' into update/desaparecidos-sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillePrograma94 committed Nov 7, 2024
2 parents f6357be + c6b4df8 commit dc202c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified src/app/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/app/solicitar-ayuda/_components/Form/FormContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function FormContainer() {
const session = useSession();

const [formData, setFormData] = useState<FormData>({
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])),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dc202c1

Please sign in to comment.