Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 814 | Rev 1979 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 814 Rev 1978
Línea 88... Línea 88...
88
  const { register, handleSubmit } = useForm()
88
  const { register, handleSubmit } = useForm()
Línea 89... Línea 89...
89
 
89
 
90
  const sendVote = handleSubmit(({ vote }) => {
90
  const sendVote = handleSubmit(({ vote }) => {
Línea 91... Línea -...
91
    setIsActive(false)
-
 
92
 
-
 
93
    const formData = new FormData()
-
 
94
    formData.append('vote', vote)
91
    setIsActive(false)
95
 
92
 
96
    axios
93
    axios
97
      .post(voteUrl, formData)
94
      .post(voteUrl, { vote })
Línea 98... Línea 95...
98
      .then(({ data: response }) => {
95
      .then(({ data: response }) => {
99
        const { success, data } = response
96
        const { success, data } = response