From d8cb990f6af8391ff76bef6b762a823526500a40 Mon Sep 17 00:00:00 2001 From: Salman Khan <67804327+m-salmankhan@users.noreply.github.com> Date: Thu, 14 Sep 2023 18:13:05 +0100 Subject: [PATCH] Fix syntax --- src/components/Clock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Clock.js b/src/components/Clock.js index 9038a9c..780125e 100644 --- a/src/components/Clock.js +++ b/src/components/Clock.js @@ -7,7 +7,7 @@ const tick = (setTimeLeft, eventDate, currentTime) => { diffHours = Math.floor(diffMins / 60), diffDays = Math.floor(diffHours / 24); - if(diffTime > 0 { + if(diffTime > 0) { const days = diffDays; const hours = diffHours - (days * 24); const minutes = diffMins - (days * 24 * 60) - (hours * 60);