Commit ac16d9bb authored by Quentin Hamitouche's avatar Quentin Hamitouche

Fix unintended slice

parent ff5f0211
...@@ -103,7 +103,7 @@ const VotingSession = ({ ...@@ -103,7 +103,7 @@ const VotingSession = ({
<h3>Voter pour une proposition</h3> <h3>Voter pour une proposition</h3>
<ul className="proposal-list"> <ul className="proposal-list">
{proposals.slice(1).map((proposal, index) => ( {proposals.map((proposal, index) => (
<li <li
key={index + 1} key={index + 1}
className={`proposal-item ${selectedProposal === index + 1 ? 'selected' : ''}`} className={`proposal-item ${selectedProposal === index + 1 ? 'selected' : ''}`}
......
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