Skip to content

Commit

Permalink
fix: use 2 decimals as default
Browse files Browse the repository at this point in the history
This is to align with the recent change in the backend where values are
returned with 2 decimals by default.
  • Loading branch information
edoardo committed Aug 26, 2024
1 parent ed4fa5d commit 373c225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/renderValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const toFixedPrecisionString = (value, skipRounding) => {
return value
}

const precision = skipRounding ? 10 : value > -1 && value < 1 ? 2 : 1
const precision = skipRounding ? 10 : 2

return value.toFixed(precision)
}
Expand Down

0 comments on commit 373c225

Please sign in to comment.