fix DateDistance null logic
Some checks failed
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled

This commit is contained in:
Francis Cao 2025-11-20 11:24:59 -08:00
parent abc1b50ad0
commit af958b6462

View file

@ -7,7 +7,7 @@ export function DateDistance({ date }: { date: Date }) {
const { formatTimezoneDate } = useTimezone();
const { dateLocale } = useLocale();
if (!isInvalidDate(date)) {
if (isInvalidDate(date)) {
return null;
}