Skip to content

Commit

Permalink
fix: Update CustomQuestionCard to handle options as objects
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed Aug 5, 2024
1 parent ae4e622 commit f22db5d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export const CustomQuestionCard: React.FC<{
question: "",
shortTitle: "",
name: `Custom ${getCustomQuestionTypeLabel(selected)}`,
...(selected !== "text" ? { options: ["", ""] } : undefined),
...(selected !== "text"
? { options: [{ value: "" }, { value: "" }] }
: undefined),
});
};

Expand Down

0 comments on commit f22db5d

Please sign in to comment.