diff --git a/datahandler.js b/datahandler.js index 5d9880a..0ee9019 100644 --- a/datahandler.js +++ b/datahandler.js @@ -342,7 +342,7 @@ function handleData(ws, receivedData) { // Get the received TX info const currentTx = fetchTx(dataToSend.freq, dataToSend.pi, dataToSend.ps); - if(currentTx.station !== undefined) { + if(currentTx?.station !== undefined) { dataToSend.txInfo = { station: currentTx.station, pol: currentTx.pol,