Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1978 Rev 1979
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 -... Línea 91...
-
 
91
    setIsActive(false)
-
 
92
 
-
 
93
    const formData = new FormData()
91
    setIsActive(false)
94
    formData.append('vote', vote)
92
 
95
 
93
    axios
96
    axios
94
      .post(voteUrl, { vote })
97
      .post(voteUrl, formData)
Línea 95... Línea 98...
95
      .then(({ data: response }) => {
98
      .then(({ data: response }) => {
96
        const { success, data } = response
99
        const { success, data } = response