-
Notifications
You must be signed in to change notification settings - Fork 14
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: formatter now rounds numbers down and displays only 1 decimal #232
Conversation
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Branch preview✅ Deployed to dev: |
You might be able to leverage the |
I found that I've also checked the available libs in https://github.com/microsoft/TypeScript/tree/main/src/lib and the updates of Intl do not include NumberFormat so this option is unusable at the moment. |
@@ -33,7 +33,7 @@ export const fetchTotalSafesDeployed = async (): Promise<number | null> => { | |||
} | |||
|
|||
export const useSafeStats = (): Array<string | null> => { | |||
const { totalAssets, totalSafesDeployed, totalTransactions } = useContext(SafeStatsContext) | |||
const { totalTransactions, totalAssets, totalSafesDeployed } = useContext(SafeStatsContext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the variables order to keep consistency with the following code.
What it solves
The displayed Safe stats should never be rounded up.
How this PR fixes it
en-US
locale for number formatting