From 81707c7bd82e0d1bd6cdb198e58129dcf71ac230 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 4 Apr 2024 20:41:57 +0100 Subject: [PATCH] payment count down timer added --- src/components/countdown/CustomTimer.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (

-- 2.34.1