aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-04-02 23:00:14 -0400
committerGitHub <noreply@github.com>2025-04-02 23:00:14 -0400
commit2f67d2218b48937a370c5562eff5141b80475524 (patch)
treec744dd407f46f71b692aaaad6d4c66237c8ba9a5 /ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
parent2b7c42ffacaaf884bc9497e975c0c3274e9f966e (diff)
parentfb6d8140830bbb5081056105eaa775f26885da8f (diff)
downloadJellySolutions-2f67d2218b48937a370c5562eff5141b80475524.tar.gz
JellySolutions-2f67d2218b48937a370c5562eff5141b80475524.tar.bz2
JellySolutions-2f67d2218b48937a370c5562eff5141b80475524.zip
Merge pull request #25 from RIT-SWEN-261-02/need-image
Need image support + need page image styling
Diffstat (limited to 'ufund-ui/src/app/components/funding-basket/funding-basket.component.ts')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
index dcacca1..847baee 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
@@ -70,11 +70,11 @@ export class FundingBasketComponent implements OnInit {
this.cupboardService.checkoutNeed(need.id, +contribution.value)
.pipe(catchError((ex, _) => {
if (ex.status == 500) {
- this.toastService.sendToast(ToastType.INFO, 'Fields cannot be blank');
+ this.toastService.sendToast(ToastType.ERROR, 'Fields cannot be blank');
} else if (ex.status == 400) {
- this.toastService.sendToast(ToastType.INFO, 'Goal must be greater than 0');
+ this.toastService.sendToast(ToastType.ERROR, ex.error);
} else {
- this.toastService.sendToast(ToastType.INFO, 'Error on creating need');
+ this.toastService.sendToast(ToastType.ERROR, 'Error on creating need');
}
return new Observable<string>();
}))