Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circle flickers #250

Open
iefraim opened this issue Jul 9, 2023 · 0 comments
Open

circle flickers #250

iefraim opened this issue Jul 9, 2023 · 0 comments

Comments

@iefraim
Copy link

iefraim commented Jul 9, 2023

when my countdown gets low, the circle flickers
but only then. when there is more time, it works fine
any idea why?
my code:
const CountdownDisplay = (props) => { if (props.completed) { return <h6>This event has ended</h6>; } return ( <div className="countdownCircle"> <Circle percent={props.total} strokeWidth={4} trailWidth={4} /> <p className="countdownCircle__innerText"> {props.hours + props.days * 24}:{props.minutes < 10 && "0"} {props.minutes}:{props.seconds < 10 && "0"} {props.seconds} </p> </div> ); };

it's called by a countdowntimer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant