From abb4d0000da0a03f41fcf99ee61901fab2914a38 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sat, 11 Nov 2023 19:47:05 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 87f2cbf --- gui/src/js/eventHandler.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/src/js/eventHandler.js b/gui/src/js/eventHandler.js index fc3f615d..3c3948c5 100644 --- a/gui/src/js/eventHandler.js +++ b/gui/src/js/eventHandler.js @@ -20,7 +20,7 @@ import { useSettingsStore } from "../store/settingsStore.js"; const settings = useSettingsStore(pinia); export function stateDispatcher(data) { -if (data["command"] == "modem_state") { + if (data["command"] == "modem_state") { //console.log(data) stateStore.rx_buffer_length = data["rx_buffer_length"]; @@ -109,14 +109,13 @@ if (data["command"] == "modem_state") { if (data["speed_list"].length > 0) { prepareStatsDataForStore(data["speed_list"]); } -} + } } export function eventDispatcher(data) { data = JSON.parse(data); // get ptt state as a first test - stateStore.ptt_state = data.ptt; - + stateStore.ptt_state = data.ptt; var message = ""; if (data["freedata"] == "modem-message") {