Commit d41e9926 authored by Quentin Hamitouche's avatar Quentin Hamitouche

Fix proposal id

parent 14b2733f
......@@ -82,7 +82,7 @@ const VotingSession = ({
<div className="winner-info">
<h3>Proposition gagnante :</h3>
<div className="proposal-item winner">
<strong>Proposition #{winningProposalId}:</strong> {winningProposal.description}
<strong>Proposition #{winningProposalId + 1}:</strong> {winningProposal.description}
<div className="vote-count">
<span>{winningProposal.voteCount} vote(s)</span>
</div>
......@@ -147,7 +147,7 @@ const VotingSession = ({
</div>
) : (
<div className="already-voted">
<p className="status success">Vous avez déjà voté pour la proposition #{voterInfo.votedProposalId}.</p>
<p className="status success">Vous avez déjà voté pour la proposition #{parseInt(voterInfo.votedProposalId) + 1}.</p>
</div>
)}
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment