Fixed port validation

This commit is contained in:
Ildar Kamalov
2019-02-21 19:16:09 +03:00
parent 8e993cd788
commit 158f2f6100
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export const isPositive = (value) => {
};
export const port = (value) => {
if (value && (value < 80 || value > 65535)) {
if ((value || value === 0) && (value < 80 || value > 65535)) {
return <Trans>form_error_port_range</Trans>;
}
return false;