diff options
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index 653edd4..fff8760 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -102,7 +102,7 @@ export class CupboardComponent implements OnInit { if (ex.status == 500) { this.toastService.sendToast(ToastType.INFO, 'Fields cannot be blank'); } else if (ex.status == 400) { - this.toastService.sendToast(ToastType.INFO, "Goal must be greater than 0"); + this.toastService.sendToast(ToastType.INFO, ex.error); } else { this.toastService.sendToast(ToastType.INFO, "Error on creating need"); } @@ -141,7 +141,7 @@ export class CupboardComponent implements OnInit { if (ex.status == 500) { this.toastService.sendToast(ToastType.INFO, "Fields cannot be blank"); } else if (ex.status == 400) { - this.toastService.sendToast(ToastType.INFO, "Goal must be greater than 0"); + this.toastService.sendToast(ToastType.INFO, ex.error); } else { this.toastService.sendToast(ToastType.INFO, "Error on creating need"); } |