diff --git a/apps/client/src/components/game/prompt.tsx b/apps/client/src/components/game/prompt.tsx index 92d99e10..30c8b556 100644 --- a/apps/client/src/components/game/prompt.tsx +++ b/apps/client/src/components/game/prompt.tsx @@ -117,7 +117,7 @@ const Prompt = ({ console.timeEnd("Execution Time"); - if (images && images.length === 2) { + if (images && Array.isArray(images) && images.length === 2) { if (userId) { const generations = await createGenerations({ userId,