rm debug
parent
3ae524ec0a
commit
8f81a0c0c7
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue