Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
m-salmankhan committed Sep 14, 2023
1 parent b7ae545 commit d8cb990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8cb990

Please sign in to comment.