Skip to content

Commit e5c32e2

Browse files
committed
fix(astro): replace non-null assertion with optional chain
1 parent ccc0463 commit e5c32e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/astro/src/internal/create-clerk-instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function updateClerkOptions<TUi extends Ui = Ui>(options: AstroClerkUpdateOption
108108
async function getClerkJsEntryChunk<TUi extends Ui = Ui>(options?: AstroClerkCreateInstanceParams<TUi>): Promise<void> {
109109
const jsProp = options as { js?: { ClerkJS?: BrowserClerkConstructor } } | undefined;
110110
if (jsProp?.js?.ClerkJS) {
111-
window.Clerk = new jsProp.js.ClerkJS(options!.publishableKey, {
111+
window.Clerk = new jsProp.js.ClerkJS(options?.publishableKey as string, {
112112
proxyUrl: options?.proxyUrl as string,
113113
domain: options?.domain as string,
114114
}) as any;

0 commit comments

Comments
 (0)