Skip to content

Commit

Permalink
fix: typo in importOptionalModule
Browse files Browse the repository at this point in the history
  • Loading branch information
perzeuss committed Aug 30, 2023
1 parent 5954f0d commit a82b58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/js/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function handleSuccess(response: Response | string | Count200Respon
* @returns {Promise<any>} Returns a Promise that resolves to the imported module.
*/
export async function importOptionalModule(moduleName: string) {
return Function(`return import("${moduleName}}")`)();
return Function(`return import("${moduleName}")`)();
}

/**
Expand Down

0 comments on commit a82b58b

Please sign in to comment.