Selaa lähdekoodia

Add missing condition

Mauricio Araujo 2 vuotta sitten
vanhempi
sitoutus
dc5bc7108d
1 muutettua tiedostoa jossa 18 lisäystä ja 15 poistoa
  1. 18 15
      dashboard/src/main/home/app-dashboard/apps/Apps.tsx

+ 18 - 15
dashboard/src/main/home/app-dashboard/apps/Apps.tsx

@@ -484,21 +484,24 @@ const Apps: React.FC = () => {
           loading={envDeleting}
         />
       )}
-      {trialExpired && !hasPaymentEnabled && showBillingModal && (
-        <BillingModal
-          back={() => {
-            setShowBillingModal(false);
-            history.push("/project-settings?selected_tab=billing");
-          }}
-          trialExpired
-          onCreate={async () => {
-            await refetchPaymentEnabled({
-              throwOnError: false,
-              cancelRefetch: false,
-            });
-          }}
-        />
-      )}
+      {!currentProject?.sandbox_enabled &&
+        trialExpired &&
+        !hasPaymentEnabled &&
+        showBillingModal && (
+          <BillingModal
+            back={() => {
+              setShowBillingModal(false);
+              history.push("/project-settings?selected_tab=billing");
+            }}
+            trialExpired
+            onCreate={async () => {
+              await refetchPaymentEnabled({
+                throwOnError: false,
+                cancelRefetch: false,
+              });
+            }}
+          />
+        )}
     </StyledAppDashboard>
   );
 };