[CodeFactor] Apply fixes to commit 3c9c115

This commit is contained in:
codefactor-io 2024-02-08 12:39:36 +00:00
parent 3c9c115931
commit 34101b8a20
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
3 changed files with 3 additions and 5 deletions

View file

@ -6,8 +6,7 @@ setActivePinia(pinia);
import { useStateStore } from "../store/stateStore.js";
const state = useStateStore(pinia);
import { getOverallHealth } from "../js/eventHandler.js"
import { getOverallHealth } from "../js/eventHandler.js";
</script>
<template>
<a

View file

@ -327,10 +327,9 @@ export function getOverallHealth() {
health += 5;
stateStore.is_modem_running = false;
stateStore.radio_status = false;
}
if (!stateStore.is_modem_running) health += 3;
if (stateStore.radio_status === false) health += 2;
if (process.env.FDUpdateAvail === "1") health += 1;
return health;
}
}

View file

@ -127,4 +127,4 @@ export function getAppDataPath() {
}
return appDataPath;
}
}