Skip to content

Commit

Permalink
fix: Remove unnecessary parentheses in header cookie access (#214)
Browse files Browse the repository at this point in the history
Remove unecessary parentheses after headersObj when accessing the cookie.
The correct syntax is headersObj.get('cookie') as headersObj is an object, not a function.
  • Loading branch information
Matsfjeldstad authored Dec 23, 2024
1 parent d6d68b2 commit e243d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/appkit/next/wagmi/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function RootLayout({
}>) {

const headersObj = await headers();
const cookies = headersObj().get('cookie')
const cookies = headersObj.get('cookie')

return (
<html lang="en">
Expand Down

0 comments on commit e243d69

Please sign in to comment.