Skip to content

[Bug] Mismatch of dimension length in Token Composition SCORES (Leaf & Structural) #1229

@bittensorrider

Description

@bittensorrider

Description

In PRDetailsCard.tsx, there are mismatches in showing Leaf score and Structural score between Donut chart labels and Table labels.
In details, scores in Table labels are formatted by toFixed(2) but corresponding scores in Donut chart labels are displayed in raw format.

Steps to Reproduce

  1. Click repositories menu in the home page
  2. Select any miner's repository card and move to Pull Requests tab
  3. Click one of PRs in the table, then the destination page is shown on the spot

Expected Behavior

When hovering the mouse pointer over the Donut chart's Leaf part, the score in the label would be 67.85 as the corresponding score in the table is 67.85.

Actual Behavior

Currently, the score in the Donut chart label is 67.85025.

Environment

  • Browser: Google Chrome
  • OS: macOS tahoe 26.4.1, Windows 11

Additional Context

Image 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