Explorar o código

switch true and false

David Townley %!s(int64=2) %!d(string=hai) anos
pai
achega
84f76724e8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 = () => {