Skip to content

[Bug]: No description available for Performance Badge on user profile #273

@yamgomes

Description

@yamgomes

Describe the bug

The performance badges on the report cards just say "No description available"

To Reproduce

Steps to reproduce the behavior:

  1. Open someone's user profile
  2. Mouse over the "Perfect"/"Great"/"Poor"/etc. badge

Expected behavior

Should say the description, like "Plays, but FPS is in the single digits" for "Poor"

Screenshots / Logs

Image

Environment (please complete the following information):

  • OS: Windows
  • Browser: Vivaldi (Chromium based)

Checklist

  • I have checked that this issue has not already been reported
  • I have checked that this issue exists on the production version
  • I have provided sufficient information for reproduction
  • I am willing to help investigate or fix this issue if needed

Solution, maybe?

src/app/users/[id]/UserProfilePage.tsx on line 408 the PerformanceBadge does not receive the description prop. I would guess that it just needs a description={listing.performance?.description} since every other use of the component does this but inspecting the network tab the listing description is not returned from the API (I don't know Prisma enough to know if this is intended behavior or something else would need to be adjusted).

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions