Skip to content

fix(insights): don't show very small numbers as zero #2764

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

Merged
merged 1 commit into from
Jun 8, 2025

Conversation

cprussin
Copy link
Collaborator

@cprussin cprussin commented Jun 8, 2025

Summary

Ensure very small numbers display properly instead of rounding to zero.

Rationale

For some symbols, the price or confidence are very small, and the previous formatting code would round very small numbers to zero.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@cprussin cprussin requested a review from a team as a code owner June 8, 2025 04:29
Copy link

linear bot commented Jun 8, 2025

Copy link

vercel bot commented Jun 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 5:08am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 5:08am
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am
developer-hub ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am
entropy-debugger ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am
entropy-explorer ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am
proposals ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am
staking ⬜️ Skipped (Inspect) Jun 8, 2025 5:08am

@cprussin cprussin force-pushed the cprussin/ui-123-fix-limits-on-decimals-in-ih-ui branch from 3deb655 to 1290bc1 Compare June 8, 2025 04:51
@vercel vercel bot temporarily deployed to Preview – entropy-debugger June 8, 2025 04:52 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer June 8, 2025 04:52 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference June 8, 2025 04:52 Inactive
@vercel vercel bot temporarily deployed to Preview – staking June 8, 2025 04:52 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub June 8, 2025 04:52 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals June 8, 2025 04:52 Inactive
@cprussin cprussin force-pushed the cprussin/ui-123-fix-limits-on-decimals-in-ih-ui branch from 1290bc1 to 3184e6b Compare June 8, 2025 05:05
@vercel vercel bot temporarily deployed to Preview – staking June 8, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-debugger June 8, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub June 8, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer June 8, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals June 8, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference June 8, 2025 05:05 Inactive
@cprussin cprussin merged commit bf4b385 into main Jun 8, 2025
11 checks passed
@cprussin cprussin deleted the cprussin/ui-123-fix-limits-on-decimals-in-ih-ui branch June 8, 2025 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant