diff --git a/src/frontend/hooks/useFormattedTimeSince.ts b/src/frontend/hooks/useFormattedTimeSince.ts index 363baf2ff..8c394dc07 100644 --- a/src/frontend/hooks/useFormattedTimeSince.ts +++ b/src/frontend/hooks/useFormattedTimeSince.ts @@ -3,7 +3,7 @@ import {Duration} from 'luxon'; export const useFormattedTimeSince = (start: Date | null, interval: number) => { const [currentTime, setCurrentTime] = useState(new Date()); - let startDate = start ? start : new Date(); + let startDate = start ? new Date(start) : new Date(); useEffect(() => { setCurrentTime(new Date());