Skip to content

Conversation

@AzimovS
Copy link
Contributor

@AzimovS AzimovS commented Jul 17, 2025

The number of decimals shown in the token balance is dynamic: if the integer part is zero, 6 decimals are shown, if it's less than 10, 4 decimals are shown, and in all other cases, 2 decimals are shown.

image

fixes #81

@vercel
Copy link

vercel bot commented Jul 17, 2025

@AzimovS is attempting to deploy a commit to the BuidlGuidl Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jul 19, 2025

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

Name Status Preview Comments Updated (UTC)
address-vision-port ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2025 5:47am

@portdeveloper
Copy link
Member

maybe we can just show 0 if the balance is zero?

@AzimovS
Copy link
Contributor Author

AzimovS commented Jul 19, 2025

Thank you very much for the feedback!

image

I handled it in the end, so instead of 0.000000, it will now display only 0. Please let me know if you notice anything else.

Copy link
Member

@portdeveloper portdeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@portdeveloper portdeveloper merged commit 31796a8 into BuidlGuidl:main Jul 23, 2025
1 of 2 checks passed
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.

bug: Balance is not really shown correctly

2 participants