Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Updated blance display with max decimals #3266

Merged
merged 1 commit into from
Nov 9, 2016
Merged

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Nov 8, 2016

Don't display decimals in balances where none is available, i.e. Unicorn tokens has no decimals but we still displayed 1.000, now the display would be 1

Closes https://github.com/ethcore/parity/issues/3130

parity 2016-11-08 14-12-53

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. M6-ui labels Nov 8, 2016
: api.util.fromWei(balance.value).toFormat(3);

let value;
if (token.format) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be great as a PR on BigNumber.js or at least in a helper function.

Copy link
Contributor

Choose a reason for hiding this comment

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

another issue, i think

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 9, 2016
@gavofyork gavofyork merged commit b17ce6c into master Nov 9, 2016
@gavofyork gavofyork deleted the jg-token-decimals branch November 9, 2016 12:16
arkpar pushed a commit that referenced this pull request Nov 9, 2016
arkpar pushed a commit that referenced this pull request Nov 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants