diff options
author | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 16:53:44 -0400 |
---|---|---|
committer | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 16:53:44 -0400 |
commit | 24ff80e67b365909ba391174cb0553f821ec33c4 (patch) | |
tree | 367897e3c6fb2ffc98162d117aebf8d63a57d6b6 | |
parent | 81b93fc671ba35d67c414937e18b686fd6d5f861 (diff) | |
parent | 20f717cab504a988ef8da4b34acf8ef7a7adfdd7 (diff) | |
download | JellySolutions-24ff80e67b365909ba391174cb0553f821ec33c4.tar.gz JellySolutions-24ff80e67b365909ba391174cb0553f821ec33c4.tar.bz2 JellySolutions-24ff80e67b365909ba391174cb0553f821ec33c4.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-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 2 | ||||
-rw-r--r-- | ufund-ui/src/app/components/need-page/need-page.component.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java index bf3d917..36ae341 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java @@ -50,7 +50,7 @@ public class CupboardController { public ResponseEntity<Need> createNeed(@RequestBody Map<String, Object> params) { System.out.println(params); String name = (String) params.get("name"); - int maxGoal = (int) params.get("maxGoal"); + double maxGoal = (double) params.get("maxGoal"); Need.GoalType goalType = GoalType.valueOf((String) params.get("type")); try { diff --git a/ufund-ui/src/app/components/need-page/need-page.component.html b/ufund-ui/src/app/components/need-page/need-page.component.html index 21f0771..90fd459 100644 --- a/ufund-ui/src/app/components/need-page/need-page.component.html +++ b/ufund-ui/src/app/components/need-page/need-page.component.html @@ -19,4 +19,4 @@ <p>Goal: {{need?.maxGoal}}</p> <p>Current: {{need?.current}}</p> -<p>This goal is <strong>{{((need?.current ?? 0)*100) / (need?.maxGoal ?? 0)}}%</strong> complete!</p>
\ No newline at end of file +<p>This goal is <strong>{{(((need?.current ?? 0)*100) / (need?.maxGoal ?? 0)).toFixed(0)}}%</strong> complete!</p>
\ No newline at end of file |