Parcourir la source

switch true and false

David Townley il y a 3 ans
Parent
commit
84f76724e8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      dashboard/src/components/ProvisionerSettings.tsx

+ 2 - 2
dashboard/src/components/ProvisionerSettings.tsx

@@ -187,13 +187,13 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
       if (inputError != true) {
         setInputError(true);
       }
-      return true;
+      return false;
     }
 
     if (inputError != false) {
       setInputError(false);
     }
-    return false;
+    return true;
   }
 
   const isDisabled = () => {