Skip to content

Commit

Permalink
Closes #1248
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallbergs committed Nov 25, 2022
1 parent 2938c26 commit fcf664f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ const AccordionSummaryContents = (props) => {
<Typography variant="caption">{`${
typeof props.color === "string"
? 100
: Math.floor(props.color?.a * 100 || 100)
: Math.floor(
(!isNaN(props.color?.a) ? props.color?.a : 100) * 100
)
}%`}</Typography>
)}
{typeof props.strokeWidth === "number" && (
Expand Down

0 comments on commit fcf664f

Please sign in to comment.