diff --git a/freedata_gui/src/components/chat.vue b/freedata_gui/src/components/chat.vue index 5b1be158..4f8588cb 100644 --- a/freedata_gui/src/components/chat.vue +++ b/freedata_gui/src/components/chat.vue @@ -6,7 +6,7 @@ import chat_conversations from "./chat_conversations.vue"; import chat_messages from "./chat_messages.vue"; import chat_new_message from "./chat_new_message.vue"; -import {getStationInfo} from "./../js/api"; +import { getStationInfo } from "./../js/api"; import { setActivePinia } from "pinia"; import pinia from "../store/index"; @@ -119,33 +119,30 @@ watch( ); const stationInfo = ref({ - callsign: 'N/A', // Default value for callsign + callsign: "N/A", // Default value for callsign location: { - gridsquare: 'N/A', // Default value for gridsquare + gridsquare: "N/A", // Default value for gridsquare }, }); -async function getStationInfoByCallsign(){ - try { - const data = await getStationInfo(chat.selectedCallsign); - stationInfo.value = { - callsign: data.callsign || 'N/A', // Default if not present - location: { - gridsquare: data.location?.gridsquare || 'N/A', // Default if not present - }, - }; - } catch (error) { - console.error("Error fetching station info:", error); - } +async function getStationInfoByCallsign() { + try { + const data = await getStationInfo(chat.selectedCallsign); + stationInfo.value = { + callsign: data.callsign || "N/A", // Default if not present + location: { + gridsquare: data.location?.gridsquare || "N/A", // Default if not present + }, + }; + } catch (error) { + console.error("Error fetching station info:", error); + } } - - diff --git a/freedata_gui/src/components/chat_conversations.vue b/freedata_gui/src/components/chat_conversations.vue index 146dd68d..4e6d7111 100644 --- a/freedata_gui/src/components/chat_conversations.vue +++ b/freedata_gui/src/components/chat_conversations.vue @@ -35,7 +35,6 @@ function newChat() { if (callsign === "") return; this.newChatCall.value = ""; } -