disable serial port button if already open

This commit is contained in:
Sacha Weatherstone
2023-01-05 15:32:24 +10:00
parent b019480a5c
commit e1fa6e649e

View File

@@ -51,6 +51,7 @@ export const Serial = (): JSX.Element => {
{serialPorts.map((port, index) => (
<Button
key={index}
disabled={!port.readable}
onClick={() => {
void onConnect(port);
}}