[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2024-02-08 09:14:40 +00:00
parent beb8317f94
commit 6b0e06481c
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -137,19 +137,17 @@ export function eventDispatcher(data) {
return;
switch (data["received"]) {
case "PING":
message = `Ping request from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
case "PING_ACK":
message = `Ping acknowledged from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
}
switch (data["received"]) {
case "PING":
message = `Ping request from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
case "PING_ACK":
message = `Ping acknowledged from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
}
case "arq":
if (data["arq-transfer-outbound"]) {