Explorar o código

Fix condition to check for null credit grants

Mauricio Araujo %!s(int64=2) %!d(string=hai) anos
pai
achega
c0086c9650
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/main/home/project-settings/BillingPage.tsx

+ 1 - 1
dashboard/src/main/home/project-settings/BillingPage.tsx

@@ -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