diff --git a/packages/mobile/src/components/CountdownCircleTimer.jsx b/packages/mobile/src/components/CountdownCircleTimer.jsx index c4cb927..268995d 100644 --- a/packages/mobile/src/components/CountdownCircleTimer.jsx +++ b/packages/mobile/src/components/CountdownCircleTimer.jsx @@ -45,7 +45,9 @@ const CountdownCircleTimer = (props) => { isPlaying, duration, size, - strokeWidth, + // https://github.com/vydimitrov/react-countdown-circle-timer/pull/82#issuecomment-774961578 + // Find the larger strokeWidth and calculate the path. + strokeWidth: Math.max(strokeWidth, trailStrokeWidth ?? 0), colors, initialRemainingTime, onComplete, diff --git a/packages/web/__tests__/__snapshots__/CountdownCircleTimer.test.js.snap b/packages/web/__tests__/__snapshots__/CountdownCircleTimer.test.js.snap index decb424..a50f4af 100644 --- a/packages/web/__tests__/__snapshots__/CountdownCircleTimer.test.js.snap +++ b/packages/web/__tests__/__snapshots__/CountdownCircleTimer.test.js.snap @@ -56,20 +56,20 @@ exports[`snapshot tests renders with different trail stroke width 1`] = ` xmlns="http://www.w3.org/2000/svg" >