Skip to content

Commit

Permalink
fix dashedBackgroundStyle parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aboveyunhai committed Nov 26, 2019
1 parent f3d314a commit dd71567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CircularProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export default class CircularProgress extends React.PureComponent {
}

const dashedBackgroundStyle = dashedBackground.gap > 0
? `${dashedBackground.width}, ${dashedBackground.gap}`
: dashedBackground;
? dashedBackground
: { width:0, gap:0 };

const strokeDasharray = Object.values(dashedBackgroundStyle)
.map(value => parseInt(value));

Expand Down

0 comments on commit dd71567

Please sign in to comment.