Skip to content

Commit

Permalink
feat: add extra check ensuring images returned is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
agrattan0820 committed Sep 22, 2023
1 parent f599ef8 commit 239e46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/src/components/game/prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 239e46b

Please sign in to comment.