aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.ts
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:47:10 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:47:10 -0400
commit94bbc8feb12fec210dae76ff90b6a782829a9c04 (patch)
treedefa0c8a2b4f0ee0b2bc147f386bb0373965b1cd /ufund-ui/src/app/components/cupboard/cupboard.component.ts
parentcd8b846a4455aba7664cc03e219f471d251ff9bf (diff)
parentcb5be32bf0d050cc1fd37d7cc9b4c51e1c51fffe (diff)
downloadJellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.tar.gz
JellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.tar.bz2
JellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.zip
Merge branch 'list-and-cupboard-component-refactor' into css
# Conflicts: # ufund-ui/src/app/components/cupboard/cupboard.component.ts
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts4
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");
}