Przeglądaj źródła

add missing || (#3044)

Co-authored-by: David Townley <davidtownley@Davids-MacBook-Air.local>
dt3-5 3 lat temu
rodzic
commit
2a00c4088d
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      dashboard/src/components/ProvisionerSettings.tsx

+ 5 - 4
dashboard/src/components/ProvisionerSettings.tsx

@@ -123,7 +123,8 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
       !user.email.endsWith("porter.run") &&
       ((!clusterName && true) ||
         (isReadOnly && props.provisionerError === "") ||
-        props.provisionerError === "" || currentCluster.status === "UPDATING"
+        props.provisionerError === "" ||
+        currentCluster.status === "UPDATING" ||
         isClicked)
     );
   };
@@ -247,8 +248,8 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
   useEffect(() => {
     setIsReadOnly(
       props.clusterId &&
-      (currentCluster.status === "UPDATING" ||
-        currentCluster.status === "UPDATING_UNAVAILABLE")
+        (currentCluster.status === "UPDATING" ||
+          currentCluster.status === "UPDATING_UNAVAILABLE")
     );
     setClusterName(
       `${currentProject.name}-cluster-${Math.random()
@@ -396,7 +397,7 @@ const ExpandHeader = styled.div<{ isExpanded: boolean }>`
     margin-right: 7px;
     margin-left: -7px;
     transform: ${(props) =>
-    props.isExpanded ? "rotate(0deg)" : "rotate(-90deg)"};
+      props.isExpanded ? "rotate(0deg)" : "rotate(-90deg)"};
   }
 `;