Skip to content
Prev Previous commit
Next Next commit
fix: TTL-887 make if condition more readable
  • Loading branch information
mmaquina committed May 30, 2023
commit 484326f87e51a2478b3948a257da439fa10548d0
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
}

onSubmit() {
if(this.entryForm.value.project_name.includes('ioet')){
if (!this.entryForm.value.uri && !this.entryForm.value.description){

if (this.entryForm.value.project_name.includes('ioet')) {
if (this.entryForm.value.uri === '' && this.entryForm.value.description === '') {
this.toastrService.warning('Make sure to add a description and/or ticket number when working on an internal app');
return;
}
}

if (this.entryForm.invalid) {
this.toastrService.warning('Make sure to select a project and activity');
return;
Expand Down