mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-04 07:34:06 +00:00
feat: add only numbers for port
This commit is contained in:
parent
5b6522c6eb
commit
052d0ab6dd
@ -23,6 +23,10 @@ const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndP
|
||||
}
|
||||
|
||||
const onPortChangeHandler = (value: string) => {
|
||||
if (isNaN(Number(value))) {
|
||||
return
|
||||
}
|
||||
|
||||
setPort(value)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user