Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Se arregló el stock
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-rascon committed May 17, 2023
1 parent fe2c7f7 commit 721e313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/forms/ProductForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
errorMessage = 'El stock del producto no es válido.';
return false;
}
} else if (!minimumStock || minimumStock < 1 || minimumStock >= stock) {
} else if (minimumStock && minimumStock > stock) {
errorMessage = 'El stock mínimo del producto no es válido.';
return false;
}
Expand Down

0 comments on commit 721e313

Please sign in to comment.