Skip to content

Commit

Permalink
Fix Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 27, 2024
1 parent e867c26 commit 53ddcac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/(main)/quiz/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ const QuizPage: React.FC = () => {
value={selectedQuestionCount}
onValueChange={(e) => {
const value = e.value;
if (typeof value === 'number' || value === null) {
if (typeof value === 'number') {
setSelectedQuestionCount(value);
} else {
setSelectedQuestionCount(0); // Handle unexpected types
}
}}
placeholder={generatedQuestionCount}
placeholder={generatedQuestionCount.toString()}
/>
</div>
<div style={{ display: 'flex', justifyContent: 'flex-end' }} className="col-12">
Expand All @@ -337,7 +337,7 @@ const QuizPage: React.FC = () => {
</p>
</div>
<div className="col-12 md:col-6 mb-5">
<InputNumber value={selectedQuestionCount} placeholder="0" disabled />
<InputNumber value={selectedQuestionCount} disabled />
</div>
<div className="col-12 md:col-6 mb-5">
<InputTextarea value={renderSelectedNodes()} rows={5} cols={30} autoResize disabled />
Expand Down
3 changes: 1 addition & 2 deletions types/questions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ declare namespace Questions {
}

interface RetrieveQuestionRequest {
topics?: number[];
skills?: number[];
ids?: number[];
pageNumber?: number;
pageSize?: number;
}
Expand Down

0 comments on commit 53ddcac

Please sign in to comment.