Skip to content

Commit

Permalink
Fixed condition for isFormValid
Browse files Browse the repository at this point in the history
  • Loading branch information
laxerhd committed Nov 21, 2024
1 parent 31bd52c commit 8899075
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class AttachmentUnitFormComponent implements OnChanges {
private readonly statusChanges = toSignal(this.form.statusChanges ?? 'INVALID');

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

ngOnChanges(): void {
Expand Down

0 comments on commit 8899075

Please sign in to comment.