Procházet zdrojové kódy

Fix condition to check for null credit grants (#4562)

Mauricio Araujo před 2 roky
rodič
revize
30f0f1e715

+ 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