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.
This commit is contained in:
tusharmagar 2026-04-13 18:05:57 +05:30
parent f6562a9895
commit 0e260d5fb3

View file

@ -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([