Browse Source

Update packages/web/src/components/generic/TimeAgo.tsx

Co-authored-by: Copilot <[email protected]>
pull/850/head
Jeremy Gallant 9 months ago
committed by GitHub
parent
commit
44149252c0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/web/src/components/generic/TimeAgo.tsx

2
packages/web/src/components/generic/TimeAgo.tsx

@ -90,7 +90,7 @@ export const TimeAgo = ({
useEffect(() => { useEffect(() => {
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" }); const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
let timerId: NodeJS.Timeout; let timerId: ReturnType<typeof setTimeout>;
const update = () => { const update = () => {
const { value, unit } = getRelativeTimeParts(date); const { value, unit } = getRelativeTimeParts(date);

Loading…
Cancel
Save