diff --git a/src/pages/PairDevice/ConnectViaIP/AddressAndPortInputs.tsx b/src/pages/PairDevice/ConnectViaIP/AddressAndPortInputs.tsx index 3b3f8329..36df5293 100644 --- a/src/pages/PairDevice/ConnectViaIP/AddressAndPortInputs.tsx +++ b/src/pages/PairDevice/ConnectViaIP/AddressAndPortInputs.tsx @@ -9,13 +9,13 @@ type AddressAndPortInputsProps = { } const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndPortInputsProps) => { - const [isSwitchOn, setIsSwitchOn] = useState(true) + const [isProtocolSwitchOn, setIsProtocolSwitchOn] = useState(true) const [address, setAddress] = useState('http://124.0.0.1') const [port, setPort] = useState('5052') const [isChecked, setIsChecked] = useState(true) - const onSwitchChangeHandler = () => { - setIsSwitchOn(state => !state) + const onProtocolSwitchChangeHandler = () => { + setIsProtocolSwitchOn(state => !state) } const onAddressChangeHandler = (value: string) => { @@ -48,9 +48,11 @@ const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndP