Skip to content

Commit 2891ee2

Browse files
committed
Fix hydration warning
1 parent 1f589c6 commit 2891ee2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ClientDate.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const ClientDateInner = ({ time, ...props }: ClientDateProps) => {
3232

3333
return (
3434
<Tooltip label={label}>
35-
<span {...props}>{date.toLocaleDateString(undefined)}</span>
35+
<span {...props} suppressHydrationWarning>
36+
{date.toLocaleDateString(undefined)}
37+
</span>
3638
</Tooltip>
3739
);
3840
};

0 commit comments

Comments
 (0)