Skip to content

Commit

Permalink
ARPA-953 fix display of validation error toast
Browse files Browse the repository at this point in the history
  • Loading branch information
VILLAN3LL3 committed Jan 13, 2024
1 parent 11459a9 commit 2aab1f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -604,11 +604,12 @@ export class EditAppointmentComponent implements OnInit {
(error: any) => {
if (error.errors?.ForceSending && !force) {
this.showNotificationConfirmation(error.errors.ForceSending[0], event);
return;
}
if (error.errors?.AppointmentId) {
this.notificationsService.error(error.errors.AppointmentId[0]);
} else {
this.notificationsService.error(error!.title);
this.notificationsService.error(error.title);
}
}
);
Expand Down

0 comments on commit 2aab1f6

Please sign in to comment.