From bc2ac5029c3b234ee4ee5b3e01244ad5b65be6cd Mon Sep 17 00:00:00 2001 From: Sarfaraj ali <82038651+Sarfaraj-ali@users.noreply.github.com> Date: Wed, 7 Jul 2021 17:58:38 +0530 Subject: [PATCH] Update Countdown.tsx --- lib/Countdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Countdown.tsx b/lib/Countdown.tsx index f64b3aa..1e8658d 100644 --- a/lib/Countdown.tsx +++ b/lib/Countdown.tsx @@ -68,7 +68,7 @@ export default class Countdown extends React.Component< } componentDidUpdate() { - if (this.state.timer === 1) { + if (this.state.timer === 0) { const { onCountdownOver } = this.props; onCountdownOver && onCountdownOver(); clearInterval(this.interval);