Skip to content

Commit

Permalink
Merge pull request #449 from Decatur-Robotics/zeroes
Browse files Browse the repository at this point in the history
Using Zeroes instead of Question Marks
  • Loading branch information
renatodellosso authored Feb 24, 2025
2 parents f4d1995 + 70f203f commit 56f7054
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions components/competition/InsightsAndSettingsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default function InsightsAndSettingsCard(props: {
? (+(
Round(submittedReports / reports.length) * 100
)).toFixed(0)
: "?"}
: "0"}
%
</div>
<div className="stat-desc"></div>
Expand All @@ -394,7 +394,7 @@ export default function InsightsAndSettingsCard(props: {
? (+(
Round(submittedReports / reports.length) * 100
)).toFixed(0)
: "?"}
: "0"}
%
</div>
<div className="stat-desc">
Expand All @@ -412,12 +412,9 @@ export default function InsightsAndSettingsCard(props: {
<FaUserGroup size={40}></FaUserGroup>
</div>
<div className="stat-value text-primary">
{!submittedPitreports && submittedPitreports !== 0
? "?"
: submittedPitreports}
/
{!submittedPitreports ? "0" : submittedPitreports}/
{!pitreports || pitreports.length === 0
? "?"
? "0"
: pitreports.length}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sj3",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"repository": "https://github.com/Decatur-Robotics/Gearbox",
"license": "CC BY-NC-SA 4.0",
Expand Down

0 comments on commit 56f7054

Please sign in to comment.