Skip to content

Commit

Permalink
Usage of strict equality for consistency in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
laxerhd committed Dec 2, 2024
1 parent 4f80eee commit 5d7b755
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class AttachmentUnitFormComponent implements OnChanges {
private readonly statusChanges = toSignal(this.form.statusChanges ?? 'INVALID');

isFormValid = computed(() => {
return this.statusChanges() === 'VALID' && !this.isFileTooBig() && this.nameControl?.value != '' && this.fileName();
return this.statusChanges() === 'VALID' && !this.isFileTooBig() && this.nameControl?.value !== '' && this.fileName();
});

ngOnChanges(): void {
Expand Down

0 comments on commit 5d7b755

Please sign in to comment.