diff --git a/app/Components/Receipt/Inscripcion.tsx b/app/Components/Receipt/Inscripcion.tsx index 6221a31..2e21227 100644 --- a/app/Components/Receipt/Inscripcion.tsx +++ b/app/Components/Receipt/Inscripcion.tsx @@ -166,13 +166,18 @@ export default function Inscripcion({ const id_plataforma = PLATAFORMA_MAP[plataformaSeleccionada]; try { + + const token = Cookies.get("token"); + const headers = { Authorization: `Bearer ${token}` }; + await axios.post( `${envConfig.apiUrl}/alumno-inscrito`, { id_cuenta: numAcount, id_plataforma, realizo_pago: false, - } + }, + { headers }, ); Swal.fire({