diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx index f102006f2..7c392369b 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx @@ -12,18 +12,16 @@ export function WorkflowActionCard({ (workflow.activeStep === 'structure-recognition' && workflow.isRecognizing) || (workflow.activeStep === 'asset-separation' && workflow.isSeparating); - const status = - workflow.activeStep === 'reference-analysis' - ? workflow.suggestionStatus - : workflow.activeStep === 'structure-recognition' - ? workflow.recognitionStatus - : workflow.separationStatus; - const hasRun = - workflow.activeStep === 'reference-analysis' - ? workflow.hasSuggested - : workflow.activeStep === 'structure-recognition' - ? workflow.hasRecognized - : workflow.hasSeparated; + const status = { + 'reference-analysis': workflow.suggestionStatus, + 'structure-recognition': workflow.recognitionStatus, + 'asset-separation': workflow.separationStatus, + }[workflow.activeStep]; + const hasRun = { + 'reference-analysis': workflow.hasSuggested, + 'structure-recognition': workflow.hasRecognized, + 'asset-separation': workflow.hasSeparated, + }[workflow.activeStep]; return (