Skip to content

Commit

Permalink
fix(blog): hydration errors due to newsletter component
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed May 10, 2024
1 parent f5b4261 commit fb18146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/newsletter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function SignUpForm({ sendUsersToSettings = false, section = false }) {
Get the MDN newsletter and never miss an update on the latest web
development trends, tips, and best practices.
</p>
{sendUsersToSettings && user?.isAuthenticated ? (
{sendUsersToSettings && user?.isAuthenticated && !isServer ? (
<p>
Sign up via the{" "}
<a href={`/${locale}/plus/settings#newsletter`} rel="_blank">
Expand Down

0 comments on commit fb18146

Please sign in to comment.