move to finally

This commit is contained in:
Zane Staggs
2025-10-01 16:30:19 -07:00
parent a55cba7fae
commit 4f65ec56c4
@@ -111,11 +111,11 @@ export default function CreateRecipeFromSessionModal({
})
.catch((error) => {
console.error('Failed to analyze messages:', error);
clearInterval(stageInterval);
setAnalysisStage('Analysis failed');
setHasAnalyzed(true);
})
.finally(() => {
clearInterval(stageInterval);
setHasAnalyzed(true);
setTimeout(() => {
setIsAnalyzing(false);
setAnalysisStage('');