Skip to content

Commit

Permalink
Fixed the inverted signal strength
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Jun 3, 2024
1 parent f0719ff commit 81fcb43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/wifisettings/WiFiSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import WiFiStats from "./WifiStats";
import { sleep } from "../../utils/utils";

const getSignalColor = (signal: number) => {
if (signal < 67) {
if (signal > 60) {
return "success";
} else if (signal < 80) {
} else if (signal > 30) {
return "warning";
} else {
return "danger";
Expand Down Expand Up @@ -334,7 +334,10 @@ const WiFiSettings = () => {
}
/>
</Badge>{" "}
{accessPoint.ssid}{" "}
{accessPoint.ssid}
{" (" +
accessPoint.signal +
"%) "}
{accessPoint.isProtected && (
<FontAwesomeIcon
icon={
Expand Down

0 comments on commit 81fcb43

Please sign in to comment.