Skip to content

Commit efc6e14

Browse files
committed
Fix topics field validation
1 parent b84cb20 commit efc6e14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/app/questions/questions.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class QuestionsComponent implements OnInit {
111111
if (
112112
!this.question.title?.trim() ||
113113
!this.question.topics ||
114+
this.question.topics?.length == 0 ||
114115
!this.question.difficulty?.trim() ||
115116
!this.question.description?.trim()
116117
) {

0 commit comments

Comments
 (0)