Fix new Frontend 13
This commit is contained in:
@@ -47,7 +47,7 @@ const STEP_INFO_MAP = {
|
||||
icon: Target,
|
||||
color: 'green'
|
||||
},
|
||||
// Fallback for unknown steps
|
||||
// Handle any unmapped steps
|
||||
'default': {
|
||||
title: 'Procesando...',
|
||||
description: 'Procesando tus datos para crear el modelo de predicción',
|
||||
|
||||
@@ -105,7 +105,10 @@ const OnboardingPage: React.FC<OnboardingPageProps> = ({ user, onComplete }) =>
|
||||
currentStep: data.current_step || data.currentStep || 'Procesando...',
|
||||
productsCompleted: data.products_completed || data.productsCompleted || prev.productsCompleted,
|
||||
productsTotal: data.products_total || data.productsTotal || prev.productsTotal,
|
||||
estimatedTimeRemaining: data.estimated_time_remaining || data.estimatedTimeRemaining || prev.estimatedTimeRemaining,
|
||||
estimatedTimeRemaining: data.estimated_time_remaining_minutes ||
|
||||
data.estimated_time_remaining ||
|
||||
data.estimatedTimeRemaining ||
|
||||
prev.estimatedTimeRemaining,
|
||||
status: 'running'
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user