Browse Source

switch true and false

David Townley 3 years ago
parent
commit
84f76724e8
1 changed files with 2 additions and 2 deletions
  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 = () => {