Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16750 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16750 Rev 16756
Línea 128... Línea 128...
128
    }
128
    }
129
  }, [])
129
  }, [])
Línea 130... Línea 130...
130
 
130
 
131
  useEffect(() => {
131
  useEffect(() => {
132
    if (!votes) return
132
    if (!votes) return
133
    const total = votes.reduce((total, vote) => total + vote, 0)
133
    const total = votes.reduce((total, vote) => total + Number(vote), 0)
134
    setTotalVotes(total)
134
    setTotalVotes(total)
Línea 135... Línea 135...
135
  }, [])
135
  }, [])
136
 
136