Skip to content

Display correct number of decimals for 'usd' fiat#2381

Merged
rickycodes merged 3 commits intodevelopfrom
bugfix/round-fiat
Apr 12, 2021
Merged

Display correct number of decimals for 'usd' fiat#2381
rickycodes merged 3 commits intodevelopfrom
bugfix/round-fiat

Conversation

@rickycodes
Copy link
Copy Markdown
Contributor

@rickycodes rickycodes commented Mar 15, 2021

Description

I noticed we're not rounding fiat correctly in some instances:

Before:

After:

image

This likely needs more work since I don't think adding toFixed(2) is an adequate enough solution. We could probably look at adding Intl.NumberFormat in the future.

Adding the DONOTMERGE label and moving this to Draft until we can land on a better solution.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #???

@rickycodes rickycodes requested a review from a team as a code owner March 15, 2021 15:22
@rickycodes rickycodes changed the title Add toFixed(2) Display correct number of decimals for 'usd' fiat Mar 15, 2021
@rickycodes rickycodes added the DO-NOT-MERGE Pull requests that should not be merged label Mar 15, 2021
@rickycodes rickycodes marked this pull request as draft March 15, 2021 15:44
@rickycodes rickycodes marked this pull request as ready for review March 21, 2021 23:24
@rickycodes
Copy link
Copy Markdown
Contributor Author

this is probably fine to merge as we're doing the same thing in other places (it only fixes the issue for USD)

@rickycodes rickycodes added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed DO-NOT-MERGE Pull requests that should not be merged labels Mar 24, 2021
Copy link
Copy Markdown
Member

@andrepimenta andrepimenta left a comment

Choose a reason for hiding this comment

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

LGTM!

@rickycodes rickycodes removed the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Apr 12, 2021
@rickycodes rickycodes merged commit a190071 into develop Apr 12, 2021
@rickycodes rickycodes deleted the bugfix/round-fiat branch April 12, 2021 17:48
rickycodes added a commit that referenced this pull request Apr 13, 2021
* develop:
  Bump vm-browserify from 0.0.4 to 1.1.2 (#2447)
  Bump jest-serializer from 24.4.0 to 26.6.2 (#2501)
  Bump react-native-share from 3.3.2 to 5.2.2 (#2499)
  Bump json-rpc-middleware-stream from 2.1.1 to 3.0.0 (#2411)
  Bump eslint-plugin-prettier from 3.3.0 to 3.3.1 (#2406)
  Bump babel-eslint from 10.0.3 to 10.1.0 (#2403)
  Display correct number of decimals for 'usd' fiat (#2381)
  bugfix/4849 (#2491)
  bugfix/2488 (#2490)
  Fix/analytics v1 priority1 (#2487)
  Add scripts for generating and verifying SHA 512 checksums (#2168)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-dev-review PR needs reviews from other engineers (in order to receive required approvals)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants