[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2024-01-05 22:20:45 +00:00
parent f56790dbc3
commit 7ce160da69
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -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