main
alex 2024-06-02 13:21:45 +02:00
parent 3ae524ec0a
commit 8f81a0c0c7
1 changed files with 0 additions and 2 deletions

View File

@ -44,8 +44,6 @@ function UseVoteLocalStorage() {
const vote = (id, up) => { const vote = (id, up) => {
const newVotes = [...storageVotes]; const newVotes = [...storageVotes];
console.log("new", newVotes);
const existingVoteIndex = newVotes.findIndex((vote) => vote.id === id); const existingVoteIndex = newVotes.findIndex((vote) => vote.id === id);
if (existingVoteIndex !== -1) { if (existingVoteIndex !== -1) {