Skip to content

Commit

Permalink
fix(clerk-js): Give empty object when options are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Nov 8, 2023
1 parent 369dc14 commit 320b770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export default class Clerk implements ClerkInterface {

this.#options = {
...defaultOptions,
...getNonUndefinedValues(options),
...getNonUndefinedValues(options || {}),
};

if (this.#options.standardBrowser) {
Expand Down

0 comments on commit 320b770

Please sign in to comment.