diff --git a/UI/renderer.js b/UI/renderer.js index 8b573bd..0332fb6 100644 --- a/UI/renderer.js +++ b/UI/renderer.js @@ -19,9 +19,8 @@ function refreshSerialPorts() serialport.list().then((ports) => { console.log('Serial ports found: ', ports); - if (ports.length === 0) { - document.getElementById('serialDetectError').textContent = 'No ports discovered' - } + if (ports.length === 0) { document.getElementById('serialDetectError').textContent = 'No ports discovered'; } + else { document.getElementById('serialDetectError').textContent = ''; } select = document.getElementById('portsSelect');