title: Validation is wrong
body: <p>I did the valition, but when I put the right numbers it gaves me an error that say &quot;Max Weight should be greater than the Min Weight&quot; but it isnt greater :c</p>
  <p>this is the code if the validation</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if (input.weightMin &gt; input.weightMax) {
        errors.weightMax = "Peso maximo deberia ser mayor que el peso minimo";
      }</code></pre>
  </div>
  </div>
  </p>
  <p>this is the code of the hmtl</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div className={d.contfilt}&gt;
              &lt;label&gt;Peso mínimo:&lt;/label&gt;
              &lt;input
                className={d.inp}
                type="text"
                value={input.weightMin}
                name="weightMin"
                onChange={handleChange}
                placeholder="Kg"
              /&gt;
              {errors.weightMin &amp;&amp; &lt;p className={d.error}&gt;{errors.weightMin}&lt;/p&gt;}
            &lt;/div&gt;
            &lt;div className={d.contfilt}&gt;
              &lt;label&gt;Peso máximo:&lt;/label&gt;
              &lt;input
                className={d.inp}
                type="text"
                value={input.weightMax}
                name="weightMax"
                onChange={handleChange}
                placeholder="Kg"
              /&gt;
              {errors.weightMax &amp;&amp; &lt;p className={d.error}&gt;{errors.weightMax}&lt;/p&gt;}
            &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>this is the pic of the error<a href="https://i.stack.imgur.com/a75g7.png" rel="nofollow noreferrer">enter image description here</a></p>