diff --git a/components/AIGenerationPanel.tsx b/components/AIGenerationPanel.tsx index 047a868..507d008 100644 --- a/components/AIGenerationPanel.tsx +++ b/components/AIGenerationPanel.tsx @@ -35,7 +35,11 @@ export function AIGenerationPanel({ onApproveCards }: AIGenerationPanelProps) { setGenerated(data.cards); if (data.fallback) { - setStatusMessage("Generated cards using fallback mock content."); + setStatusMessage( + typeof data.message === "string" && data.message.trim().length > 0 + ? data.message + : "Generated cards using fallback mock content." + ); } } catch (error) { const fallbackCards = mockGenerateCards(notes);