feat: add only numbers for port

This commit is contained in:
RadoslavDimchev 2023-12-20 12:06:09 +02:00
parent 5b6522c6eb
commit 052d0ab6dd

View File

@ -23,6 +23,10 @@ const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndP
}
const onPortChangeHandler = (value: string) => {
if (isNaN(Number(value))) {
return
}
setPort(value)
}