diff --git a/apps/webapp/app/components/billing/UsageBar.tsx b/apps/webapp/app/components/billing/UsageBar.tsx index b1c51f438..a54219a98 100644 --- a/apps/webapp/app/components/billing/UsageBar.tsx +++ b/apps/webapp/app/components/billing/UsageBar.tsx @@ -19,13 +19,12 @@ export function UsageBar({ projectedRuns, subscribedToPaidTier = false, }: UsageBarProps) { - //create a maximum range for the progress bar const getLargestNumber = Math.max( numberOfCurrentRuns, tierRunLimit, projectedRuns, billingLimit ?? -Infinity - ); + ); //creates a maximum range for the progress bar const maxRange = Math.round(getLargestNumber * 1.1); // add 10% to the largest number so the bar doesn't reach the end const tierRunLimitPercentage = Math.round((tierRunLimit / maxRange) * 100); //convert the freeRunLimit into a percentage const projectedRunsPercentage = Math.round((projectedRuns / maxRange) * 100); //convert the projectedRuns into a percentage diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx index 817137e40..35a46684f 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx @@ -59,7 +59,7 @@ export default function Page() {
$0.00
-$5.25
-$0.00
+$5.25
+