Skip to content

Commit

Permalink
fix(clock): fixed hydration error in clock (#1119)
Browse files Browse the repository at this point in the history
* fix(clock): fixed hydration error in clock

* chore(clock): assed suppresshydrationwarning to clock component
  • Loading branch information
vildeopp authored Jul 11, 2023
1 parent cb7bb48 commit 93ee71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-tavla/src/Shared/components/Clock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Clock() {
timeZone: 'Europe/Oslo',
}).format(currentTime)

return <span>{time}</span>
return <span suppressHydrationWarning>{time}</span>
}

export { Clock }

0 comments on commit 93ee71b

Please sign in to comment.