Skip to content

Commit

Permalink
arreglo de bug visual
Browse files Browse the repository at this point in the history
se corrigio el bug que hacia que luego de postularse a una oferta laboral se pusiera en blanco la pagina
  • Loading branch information
angelcast2002 committed Nov 13, 2023
1 parent e8cf1f7 commit 4079b81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uniEmpleos/src/pages/postulacion/Postulacion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Popup from "../../components/Popup/Popup"
const Postulacion = ({ id }) => {
const { user } = useStoreon("user")
const api = useApi()
const apiPostulation = useApi()
const { quill, quillRef } = useQuill({
readOnly: true, // Establecer el editor Quill en modo de solo lectura
modules: {
Expand Down Expand Up @@ -46,7 +47,7 @@ const Postulacion = ({ id }) => {
}, [quill, detalles])

const handlePostularme = async () => {
const apiResponse = await api.handleRequest("POST", "/postulations/", {
const apiResponse = await apiPostulation.handleRequest("POST", "/postulations/", {
id_oferta: parseInt(id, 10),
id_estudiante: user.id_user,
estado: "enviada",
Expand Down Expand Up @@ -130,7 +131,7 @@ const Postulacion = ({ id }) => {
<Button
label="Postularme"
backgroundColor="#a08ae5"
onClick={handlePostularme}
onClick={() => {handlePostularme()}}
noborder
/>
</div>
Expand Down

0 comments on commit 4079b81

Please sign in to comment.