Răsfoiți Sursa

Address review comments

Mauricio Araujo 2 ani în urmă
părinte
comite
0b1e0c7d0e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      dashboard/src/main/home/app-dashboard/apps/Apps.tsx

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

@@ -87,13 +87,13 @@ const Apps: React.FC = () => {
     return timestampDate.isBefore(dayjs(new Date()));
   };
   const trialExpired =
-    plan !== null && plan && isTrialExpired(plan.trial_info.ending_before);
+    plan != null && isTrialExpired(plan.trial_info.ending_before);
 
   useEffect(() => {
     if (trialExpired && !hasPaymentEnabled) {
       setShowBillingModal(true);
     }
-  });
+  }, []);
 
   const [{ data: apps = [], status }, { data: addons = [] }] = useQueries({
     queries: [