Skip to content

Commit

Permalink
Merge pull request #340 from harmony-one/fix_3_digits_rounding
Browse files Browse the repository at this point in the history
Fix three digits rounding
  • Loading branch information
ArtemKolodko authored Oct 17, 2023
2 parents bf773d1 + 0459aca commit 78b3953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/schedule/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export const abbreviateNumber = (value: number): string => {

return (+value / Math.pow(1000, index))
.toFixed(fractionalDigits)
.replace(/\.0$/, '') + suffix[index - 1]
// .replace(/\.0$/, '')
+ suffix[index - 1]

Check failure on line 41 in src/modules/schedule/utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'+' should be placed at the end of the line
}

export const lessThan100 = (value: string): string => {
Expand Down

0 comments on commit 78b3953

Please sign in to comment.