Skip to content

Commit

Permalink
Added validation of Whitespace(TEAMMATES#12679) in copySessionModel
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunErram committed Feb 6, 2024
1 parent 2b1acc9 commit 8947e1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export class CopySessionModalComponent {
this.copyToCourseSet.add(courseId);
}
}

// Added validation for whitespace.
noWhitespaceValidator(control: { value: any; }) {
const isWhitespace = (control.value || '').trim().length === 0;
const isValid = !isWhitespace;
Expand Down

0 comments on commit 8947e1d

Please sign in to comment.