[CodeFactor] Apply fixes to commit c33d23f

This commit is contained in:
codefactor-io 2024-02-07 21:47:01 +00:00
parent c33d23f326
commit c8ae7487f7
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -26,7 +26,11 @@ interface Message {
}
export async function processFreedataMessages(data) {
if (typeof data !== "undefined" && typeof data.messages !== "undefined" && Array.isArray(data.messages)) {
if (
typeof data !== "undefined" &&
typeof data.messages !== "undefined" &&
Array.isArray(data.messages)
) {
chatStore.callsign_list = createCallsignListFromAPI(data);
chatStore.sorted_chat_list = createSortedMessagesList(data);
}