@LTOssian
Posted
Hey, looks awesome congrats !
Just wanted to point out a little bug which allows me to add (or remove) a comment's score indefinitely.
I think the issue comes from your handleVote logic in Vote.jsx, you should separate downvote & upvote in two separate if-statement. Otherwise I can upvote while voteTries is at 1 and set voteTries to 0 then downvote while voteTries is at 0, which will add +1 to previousVote and set VoteTries to 1 and finaly I can repeat from there.
Cheers, Louisan