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

Upvotes cannot be negative #1002

Closed
lokeshsingh3721 opened this issue Jan 1, 2024 · 4 comments
Closed

Upvotes cannot be negative #1002

lokeshsingh3721 opened this issue Jan 1, 2024 · 4 comments
Labels
bug Something isn't working UI/UX

Comments

@lokeshsingh3721
Copy link
Contributor

Describe the bug

Clicking on the "decrement upvote" button results in the upvote count going below zero, which is not intended behavior.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Home'
  2. Click on 'decrement upvote'
  3. See error

This is also happening in the post details component .

  1. Go to 'Home'
  2. Click on 'Any post'
  3. Click on 'Decrement upvote'
  4. See error

Expected behavior

The upvote count should decrement by one when the "decrement upvote" button is clicked, but it should not go below zero. The count should stop at zero.

Screenshots

Screen.Recording.2024-01-01.at.3.14.40.PM.mov

Desktop (please complete the following information):

  • OS: [iOS]
  • Browser [ chrome, safari]
  • Version [Chrome 118 on macOS (Ventura)]
@github-actions github-actions bot added bug Something isn't working UI/UX labels Jan 1, 2024
Copy link

github-actions bot commented Jan 1, 2024

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

@lokeshsingh3721 lokeshsingh3721 mentioned this issue Jan 1, 2024
4 tasks
@PoulavBhowmick03
Copy link

Hey Lokesh, I have made an issue for this, you can see #995 for more details. I am waiting for the mentor's comment to raise a PR for this

@Huzaif-Ahmed
Copy link
Contributor

@PoulavBhowmick03 i am already working on this issue

#887

i already implemented comment like system and currently working on implmenting tutuorial like system

@lokeshsingh3721 lokeshsingh3721 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
@lokeshsingh3721
Copy link
Contributor Author

Ok closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI/UX
Projects
None yet
Development

No branches or pull requests

3 participants