浏览代码

Address review comments

Mauricio Araujo 2 年之前
父节点
当前提交
0b1e0c7d0e
共有 1 个文件被更改,包括 2 次插入2 次删除
  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()));
     return timestampDate.isBefore(dayjs(new Date()));
   };
   };
   const trialExpired =
   const trialExpired =
-    plan !== null && plan && isTrialExpired(plan.trial_info.ending_before);
+    plan != null && isTrialExpired(plan.trial_info.ending_before);
 
 
   useEffect(() => {
   useEffect(() => {
     if (trialExpired && !hasPaymentEnabled) {
     if (trialExpired && !hasPaymentEnabled) {
       setShowBillingModal(true);
       setShowBillingModal(true);
     }
     }
-  });
+  }, []);
 
 
   const [{ data: apps = [], status }, { data: addons = [] }] = useQueries({
   const [{ data: apps = [], status }, { data: addons = [] }] = useQueries({
     queries: [
     queries: [