Browse Source

fix: linting

develop
Ezerous 4 years ago
parent
commit
e0ff59a3d2
  1. 4
      packages/concordia-app/src/components/PollView/PollGraph/index.jsx

4
packages/concordia-app/src/components/PollView/PollGraph/index.jsx

@ -7,7 +7,9 @@ import PollChartDonut from './PollChartDonut';
import './styles.css';
const PollGraph = (props) => {
const { pollOptions, userVoteIndex, voteCounts, voterNames } = props;
const {
pollOptions, userVoteIndex, voteCounts, voterNames,
} = props;
const [totalVotes, setTotalVotes] = useState(voteCounts.reduce((accumulator, voteCount) => accumulator + voteCount, 0));
const { t } = useTranslation();

Loading…
Cancel
Save