Skip to content

Commit 484326f

Browse files
committed
fix: TTL-887 make if condition more readable
1 parent d18f521 commit 484326f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,14 +331,14 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
331331
}
332332

333333
onSubmit() {
334-
335-
if(this.entryForm.value.project_name.includes('ioet')){
336-
if (!this.entryForm.value.uri && !this.entryForm.value.description){
334+
335+
if (this.entryForm.value.project_name.includes('ioet')) {
336+
if (this.entryForm.value.uri === '' && this.entryForm.value.description === '') {
337337
this.toastrService.warning('Make sure to add a description and/or ticket number when working on an internal app');
338338
return;
339339
}
340340
}
341-
341+
342342
if (this.entryForm.invalid) {
343343
this.toastrService.warning('Make sure to select a project and activity');
344344
return;

0 commit comments

Comments
 (0)