diff options
author | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 12:59:16 -0400 |
---|---|---|
committer | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 12:59:16 -0400 |
commit | 72868a3b4026bc8d5c8484487e62027de3baf0bc (patch) | |
tree | 2e0268868a46fbe5b2cf3daeaa6ee10bcc40c709 | |
parent | 28a8fde7d57ee5ef762bd20f41c728966ab74d06 (diff) | |
parent | 45bb79cd56e93ee26f1227ed15a9161a59fe6f35 (diff) | |
download | JellySolutions-72868a3b4026bc8d5c8484487e62027de3baf0bc.tar.gz JellySolutions-72868a3b4026bc8d5c8484487e62027de3baf0bc.tar.bz2 JellySolutions-72868a3b4026bc8d5c8484487e62027de3baf0bc.zip |
Merge branch 'funding_basket' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b-jellysolutions into funding_basket
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index 6ad0a5f..45346b4 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -106,9 +106,9 @@ export class CupboardComponent implements OnInit { console.log(need.id, need, "need updated"); this.cupboardService.updateNeed(need.id, need) .pipe(catchError((ex, r) => { - if (ex.status = 500) { + if (ex.status == 500) { this.statusText.next("Fields cannot be blank"); - } else if (ex.status = 400) { + } else if (ex.status == 400) { this.statusText.next("Goal must be greater than 0"); } else { this.statusText.next("Error on creating need"); @@ -141,9 +141,9 @@ export class CupboardComponent implements OnInit { console.log("form submitted. creating need: ", need); this.cupboardService.createNeed(need) .pipe(catchError((ex, r) => { - if (ex.status = 500) { + if (ex.status == 500) { this.statusText.next("Fields cannot be blank"); - } else if (ex.status = 400) { + } else if (ex.status == 400) { this.statusText.next("Goal must be greater than 0"); } else { this.statusText.next("Error on creating need"); |