From af0dcf7efd0c25f33336013e5815bc04f909bb17 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Thu, 10 Jul 2025 16:13:36 -0700 Subject: [PATCH] remove optional chain --- .../components/subscription/components/cancel-subscription.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/subscription/components/cancel-subscription.tsx b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/subscription/components/cancel-subscription.tsx index ecebcfab2e..87bbbbd776 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/subscription/components/cancel-subscription.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/subscription/components/cancel-subscription.tsx @@ -63,7 +63,7 @@ export function CancelSubscription({ subscription, subscriptionData }: CancelSub activeOrgId, }) - const result = await betterAuthSubscription.cancel?.({ + const result = await betterAuthSubscription.cancel({ returnUrl: window.location.href, referenceId, })