diff --git a/web/components/datetime-tooltip.tsx b/web/components/datetime-tooltip.tsx index efb01961..04fab5cf 100644 --- a/web/components/datetime-tooltip.tsx +++ b/web/components/datetime-tooltip.tsx @@ -2,6 +2,7 @@ import dayjs from 'dayjs' import utc from 'dayjs/plugin/utc' import timezone from 'dayjs/plugin/timezone' import advanced from 'dayjs/plugin/advancedFormat' +import { useEffect, useState } from 'react' dayjs.extend(utc) dayjs.extend(timezone) @@ -17,6 +18,11 @@ export function DateTimeTooltip(props: { const formattedTime = dayjs(time).format('MMM DD, YYYY hh:mm a') const toolTip = text ? `${text} ${formattedTime}` : formattedTime + const [_, setIt] = useState() + useEffect(() => { + setIt(undefined) + }, []) + return ( <>