Skip to content

Commit d3c7a32

Browse files
committed
Usage of strict equality for consistency in condition
1 parent 8c9741c commit d3c7a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-unit-form/attachment-unit-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class AttachmentUnitFormComponent implements OnChanges {
7070
private readonly statusChanges = toSignal(this.form.statusChanges ?? 'INVALID');
7171

7272
isFormValid = computed(() => {
73-
return this.statusChanges() === 'VALID' && !this.isFileTooBig() && this.nameControl?.value != '' && this.fileName();
73+
return this.statusChanges() === 'VALID' && !this.isFileTooBig() && this.nameControl?.value !== '' && this.fileName();
7474
});
7575

7676
ngOnChanges(): void {

0 commit comments

Comments
 (0)