Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : One User can do multiple likes to post/tutorial #906

Closed
rohitPandey469 opened this issue Oct 18, 2023 · 6 comments
Closed

Bug : One User can do multiple likes to post/tutorial #906

rohitPandey469 opened this issue Oct 18, 2023 · 6 comments
Labels
bug Something isn't working Feature New feature UI/UX

Comments

@rohitPandey469
Copy link

Describe the bug
Same user can do more than 1 likes to the post/tutorial

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://localhost:5173
  2. Click on share tutorial or new codelabz btn and create a new tutorial
  3. Click on the vote button of newly created tutorial
  4. See Error, same user can do multiple vote until refresh

Expected behavior
After clicking it once, the button needs to be disabled and not allow further votes by the same user.

Screenshots
image

Desktop (please complete the following information):

  • OS : Windows
  • Browser : Chrome
  • Version : latest

Smartphone (please complete the following information):

  • Not applicable

Additional context
-After clicking it once although the appearance of button changed to a disabled one but a user can still click on it.
-The data in db is not updating, i.e. once upvoted - stays upvoted

@github-actions github-actions bot added bug Something isn't working Feature New feature UI/UX labels Oct 18, 2023
@github-actions
Copy link

Hello 👋🏻 @rohitPandey469! Thankyou for creating an issue!

@perminder-17
Copy link

Yes... This is the issue. I can work on this. The liked user must have the data on db too. Can I work on this @ABHISHEK-PANDEY2 @Sarfraz-droid @shivareddy6. Please assign me...

@Doraemon012
Copy link
Contributor

Doraemon012 commented Oct 18, 2023

@ABHISHEK-PANDEY2 I can solve this issue, please assign it to me, I will check the user has liked the post or not, and if it has, no need to increase the likes.

@perminder-17
Copy link

I guess issue #887 is the same issue. I guess this is the duplicate of that @rohitPandey469

@rohitPandey469
Copy link
Author

Ahhh... I was trying to raise a issue for "multiple likes" and while creating I headed to not having a proper vote feature, and it's already presented

@rohitPandey469
Copy link
Author

I will close this issue then.

@rohitPandey469 rohitPandey469 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Feature New feature UI/UX
Projects
None yet
Development

No branches or pull requests

3 participants