Skip to content

Commit

Permalink
fix type err
Browse files Browse the repository at this point in the history
  • Loading branch information
mayberryzane committed Mar 21, 2024
1 parent 619533d commit 8327d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/Graphing/components/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const durationUnitMap: [number, string][] = [

const formatNumber = (n: number) => {
if (n < 10000) {
return parseFloat(n.toPrecision(4))
return parseFloat(n.toPrecision(4)).toString()
}
const k = 1000
const sizes = ['', 'K', 'M', 'B', 'T']
Expand Down

0 comments on commit 8327d3b

Please sign in to comment.