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

frontend: refactor, fixes bugs, add test cases for formatNumber #2569

Merged

Conversation

shonsirsha
Copy link
Collaborator

There was previously a bug where it formats negative 3 digits negative number (e.g -100) to become -'100. This PR fixes this as well as adding tests and moved the function to utils/rates.ts

@thisconnect
Copy link
Collaborator

I believe @Beerosagos wrote the initial version, so I just defer to him...

@thisconnect thisconnect requested review from Beerosagos and removed request for thisconnect February 21, 2024 12:34
there was previously a bug where it formats negative 3 digits
negative number (e.g -100) to become -'100. This PR fixes this
as well as adding tests and moved the function to `utils/rates.ts`
Copy link
Collaborator

@Beerosagos Beerosagos left a comment

Choose a reason for hiding this comment

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

untested LGTM! Very nice 🙏

@shonsirsha shonsirsha force-pushed the frontend-format-number-fn-refactor branch from 071474d to 6a7b89f Compare February 26, 2024 06:31
@shonsirsha shonsirsha merged commit 6a7b89f into BitBoxSwiss:master Feb 26, 2024
4 of 5 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.

3 participants