Skip to content

Commit

Permalink
Fix condition to check for null credit grants (#4562)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauAraujo authored Apr 19, 2024
1 parent 1d5496c commit 30f0f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/main/home/project-settings/BillingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function BillingPage(): JSX.Element {
<Image src={gift} style={{ marginTop: "-2px" }} />
<Spacer inline x={1} />
<Text size={20}>
{creditGrants !== undefined &&
{creditGrants &&
creditGrants.remaining_credits > 0
? `$${formatCredits(
creditGrants.remaining_credits
Expand Down

0 comments on commit 30f0f1e

Please sign in to comment.