Skip to content
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

(Fix) Display non-zero fiat value #190

Merged
merged 8 commits into from
Nov 14, 2018
Merged

(Fix) Display non-zero fiat value #190

merged 8 commits into from
Nov 14, 2018

Conversation

vbaranov
Copy link
Collaborator

This PR solves the problem in pending tx screen when fiat value is displayed as zero, and it can confuse users. They might think, that transaction is zero-cost.

Before this PR, fiat value always displays with 2 decimals. countSignificantDecimals(val, len) is introduced in this PR, which returns the length of truncated significant decimals.

  • Covered with unit tests
  • react-hyperscript -> JSX

Example of the problem:
screen shot 2018-11-12 at 16 26 24

@ghost ghost assigned vbaranov Nov 12, 2018
@ghost ghost added the in progress label Nov 12, 2018
@vbaranov vbaranov changed the title (Fix) display non-zero fiat value (Fix) Display non-zero fiat value Nov 12, 2018
@vbaranov vbaranov added this to the NW release 4.9.0 milestone Nov 13, 2018
patitonar and others added 5 commits November 13, 2018 21:50
@vbaranov vbaranov merged commit 213e5dd into develop Nov 14, 2018
@ghost ghost removed the awaiting for review label Nov 14, 2018
@vbaranov vbaranov deleted the display-non-zero-fiat branch November 14, 2018 15:03
@vbaranov vbaranov mentioned this pull request Nov 26, 2018
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.

4 participants