Skip to content

Commit

Permalink
fix: changed default number of questions to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmelKun committed Dec 6, 2023
1 parent 567d3b3 commit 5b900a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/expo/src/forms/CreateTestForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const CreateTestForm: FC<Props> = ({

const createMultipleQuestions = (inputMessage: string) => {
const numOfQuestions =
numberOfQuestionOptions.find((option) => option.isSelected)?.value ?? 1;
numberOfQuestionOptions.find((option) => option.isSelected)?.value ?? 5;

if (inputMessage.length <= 0) {
setErrorInAIQuestion(true);
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/src/screens/create-reviewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export const CreateReviewerScreen = ({

const createMultipleQuestions = (inputMessage: string) => {
const numOfQuestions =
numberOfQuestionOptions.find((option) => option.isSelected)?.value ?? 1;
numberOfQuestionOptions.find((option) => option.isSelected)?.value ?? 5;

if (inputMessage === " ") {
setShowNumberOfQuestionsModal(false);
Expand Down

0 comments on commit 5b900a0

Please sign in to comment.