From a3a16a9bffc67000b97ee3c01cc641b63bd3bdf7 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Fri, 9 May 2025 22:46:46 -0500 Subject: [PATCH] refactor(useUserStores): remove onboarding filter to include all stores The filter for onboarding completed stores was removed to ensure all user stores are returned, regardless of their onboarding status. This change aligns with the requirement to display all stores for the user, not just those with completed onboarding. --- app/(setup-layout)/my-store/hooks/useUserStores.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/(setup-layout)/my-store/hooks/useUserStores.ts b/app/(setup-layout)/my-store/hooks/useUserStores.ts index bd2d1100..267ac900 100644 --- a/app/(setup-layout)/my-store/hooks/useUserStores.ts +++ b/app/(setup-layout)/my-store/hooks/useUserStores.ts @@ -55,8 +55,7 @@ async function fetchUserStores(userId: string, userPlan?: string) { selectionSet: ['storeId', 'storeName', 'storeType', 'onboardingCompleted'], }) - // Filtrar solo las tiendas con onboarding completado para mostrar - const completedStores = allUserStores?.filter(store => store.onboardingCompleted === true) || [] + const completedStores = allUserStores || [] // Verificar límite de tiendas según el plan const currentCount = allUserStores?.length || 0