diff --git a/src/components/countdown/CustomTimer.jsx b/src/components/countdown/CustomTimer.jsx index 3ef6470..a8b394b 100644 --- a/src/components/countdown/CustomTimer.jsx +++ b/src/components/countdown/CustomTimer.jsx @@ -13,8 +13,8 @@ export default function CustomTimer({className='text-emerald-500'}) { } },[]) - let minutes = Math.floor(time/60) - let seconds = time - (minutes * 60) + let minutes = time == 0 ? 0 : Math.floor(time/60) + let seconds = time == 0 ? 0 :time - (minutes * 60) return (