From 0e260d5fb3fe6a6283db7b5db27bbd7eef5cee4d Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Mon, 13 Apr 2026 18:05:57 +0530 Subject: [PATCH] refactor(onboarding): remove billing info check during Rowboat OAuth connection Eliminated the billing information check that was previously in place to prevent duplicate Stripe customers during the onboarding process. This change simplifies the onboarding flow while maintaining the necessary checks for composio flags after account connection. --- .../src/components/onboarding/use-onboarding-state.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/x/apps/renderer/src/components/onboarding/use-onboarding-state.ts b/apps/x/apps/renderer/src/components/onboarding/use-onboarding-state.ts index 2f695f1a..a55b23fe 100644 --- a/apps/x/apps/renderer/src/components/onboarding/use-onboarding-state.ts +++ b/apps/x/apps/renderer/src/components/onboarding/use-onboarding-state.ts @@ -535,14 +535,6 @@ export function useOnboardingState(open: boolean, onComplete: () => void) { const cleanup = window.ipc.on('oauth:didConnect', async (event) => { if (event.provider === 'rowboat' && event.success) { - // Ensure user record exists before advancing (prevents duplicate - // Stripe customers from parallel API calls in later steps) - try { - await window.ipc.invoke('billing:getInfo', null) - } catch (error) { - console.error('Failed to fetch billing info during onboarding:', error) - } - // Re-check composio flags now that the account is connected try { const [googleResult, calendarResult] = await Promise.all([