Skip to content

Commit

Permalink
Reduce number of re-renders for est action bar
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Nov 13, 2024
1 parent 4ed6747 commit efe2903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PercentageMeter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const PercentageMeter = ({
// Use inline style attribute to avoid style tags being
// constantly appended to the <head/> element.
style={{
width: `${value * 100}%`,
width: `${Math.round(value * 100)}%`,
}}
h={height}
rounded="full"
Expand Down

0 comments on commit efe2903

Please sign in to comment.