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: Likes_count showing NaN in comments #4

Closed
SandraBergstrom opened this issue Jul 4, 2023 · 1 comment
Closed

BUG: Likes_count showing NaN in comments #4

SandraBergstrom opened this issue Jul 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@SandraBergstrom
Copy link
Owner

Describe the bug
When pressing the likes on a comment the counter is showing NaN.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a post
  2. Click on a comments thumbs up icon (Not your own comment)
  3. See error

Expected behavior
It should show the number of likes

Screenshots
It is a number, but not reciving it as a number.
Image

@SandraBergstrom SandraBergstrom added the bug Something isn't working label Jul 4, 2023
@SandraBergstrom SandraBergstrom self-assigned this Jul 4, 2023
@SandraBergstrom
Copy link
Owner Author

The queryset in the comments views had the connection to 'likes' instead of 'comments'

@SandraBergstrom SandraBergstrom transferred this issue from SandraBergstrom/travel-tickr Jul 7, 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
Projects
Status: Done
Development

No branches or pull requests

1 participant