Skip to content

Commit

Permalink
Merge branch 'cc-project' of github.com:porter-dev/porter into cc-pro…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
sunguroku committed May 8, 2024
2 parents 3bceea2 + 786af64 commit bfc4b09
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dashboard/src/main/home/project-settings/UsagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,13 @@ function UsagePage(): JSX.Element {
prefix={<>Billing period</>}
/>
<Spacer y={1} />
{costs &&
costs.length > 0 &&
usage &&
usage.length > 0 &&
usage[0].usage_metrics.length > 0 ? (
{processedCosts &&
processedCosts.length > 0 &&
processedUsage &&
processedUsage.length > 0 ? (
<>
<BarWrapper>
<Total>Total cost: ${computeTotalCost(costs)}</Total>
<Total>Total cost: ${computeTotalCost(processedCosts)}</Total>
<Bars
fill="#8784D2"
yKey="cost"
Expand Down

0 comments on commit bfc4b09

Please sign in to comment.