Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acayseth committed Aug 17, 2023
1 parent cdd6c9d commit 9bbb544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/count-down/count-down.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import Countdown from 'react-countdown';
import { useTimeLeft } from '@/_libs/clients/friday.hook';

export default function CountDownComponent() {
const { leftTime, loading } = useTimeLeft();
const { leftTime } = useTimeLeft();
return (
<section className="h-12 py-0.5 my-2">
{(!loading && leftTime > 0) && <Countdown
{(leftTime > 0) && <Countdown
now={Date.now}
date={Date.now() + (leftTime * 1000)}
renderer={RendererCountDown}
Expand Down

0 comments on commit 9bbb544

Please sign in to comment.