From 7ce160da694b6df1181e914a51989b77483372b8 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Fri, 5 Jan 2024 22:20:45 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- gui/src/js/settingsHandler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/src/js/settingsHandler.ts b/gui/src/js/settingsHandler.ts index 533cb9cd..4797ec2c 100644 --- a/gui/src/js/settingsHandler.ts +++ b/gui/src/js/settingsHandler.ts @@ -125,7 +125,10 @@ export function processModemConfig(data) { if (mycall.includes("-")) { const splittedCallsign = mycall.split("-"); settings.remote.STATION.mycall = splittedCallsign[0]; // The part before the hyphen - settings.remote.STATION.myssid = parseInt(splittedCallsign[1], 10); // The part after the hyphen, converted to a number + settings.remote.STATION.myssid = parseInt( + splittedCallsign[1], + 10, + ); // The part after the hyphen, converted to a number } else { settings.remote.STATION.mycall = mycall; // Use the original mycall if no SSID is present settings.remote.STATION.myssid = 0; // Default SSID if not provided