Skip to content

Commit

Permalink
fix: add default value for cookies (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Apr 5, 2024
1 parent 95730b8 commit 720c351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ssr/src/createBrowserClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function createBrowserClient<
let userDefinedClientOptions;

if (options) {
({ cookies, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options);
({ cookies = {}, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options);
cookies = cookies || {};
}

Expand Down

0 comments on commit 720c351

Please sign in to comment.