Browse Source

Fix Build

pull/2/head
Sacha Weatherstone 5 years ago
parent
commit
85fd796322
  1. 16
      src/pages/settings/Connection.tsx

16
src/pages/settings/Connection.tsx

@ -94,14 +94,14 @@ export const Connection = ({
setSerialDevices(devices);
};
React.useEffect(() => {
if (selectedConnType === connType.BLE) {
void updateBleDeviceList();
}
if (selectedConnType === connType.SERIAL) {
void updateSerialDeviceList();
}
}, [selectedConnType]);
// React.useEffect(() => {
// if (selectedConnType === connType.BLE) {
// void updateBleDeviceList();
// }
// if (selectedConnType === connType.SERIAL) {
// void updateSerialDeviceList();
// }
// }, [selectedConnType]);
const onSubmit = handleSubmit((data) => {
// void connection.setOwner(data);

Loading…
Cancel
Save