Skip to content

Commit

Permalink
Remove leftover console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mairas committed Feb 2, 2024
1 parent 50cedb3 commit 4877480
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export function App(): JSX.Element {
void (async () => {
const res = await fetch("/api/routes");
const data = await res.json();
console.log("Got routes", data);
setRoutes(data);

let populatedRoutes: RouteInstruction[] = [];
Expand Down Expand Up @@ -113,8 +112,6 @@ export function App(): JSX.Element {
setNavPath(e.url);
}

console.log("NavPath", navPath);

if (routes.length === 0) {
return (
<div className="d-flex align-items-center justify-content-center min">
Expand Down
2 changes: 0 additions & 2 deletions web/src/pages/Configuration/ConfigCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ function CardContents({
const properties = schema?.properties ?? {};
const keys = Object.keys(properties);

console.log("keys", keys);

return (
<>
{description !== "" || null}
Expand Down
4 changes: 3 additions & 1 deletion web/src/pages/Status/InfoGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function InfoGroups(): JSX.Element {
}

useEffect(() => {
console.log("Error: ", errorText);
if (errorText !== "") {
console.log("Error: ", errorText);
}
}, [errorText]);

useEffect(() => {
Expand Down
2 changes: 0 additions & 2 deletions web/src/pages/WiFi/NetworkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export function NetworkList({
throw new Error(`HTTP Error ${response.status} ${response.statusText}`);
}
const data = await response.text();
console.log(data);
setIsScanning(true);
setTimeout(getScannedWiFiNetworks, 1000);
}
Expand All @@ -48,7 +47,6 @@ export function NetworkList({
throw new Error(`HTTP Error ${response.status} ${response.statusText}`);
}
const data = await response.json();
console.log(data);
// Data is an array of objects with the following properties:
// - ssid: string
// - rssi: number
Expand Down

0 comments on commit 4877480

Please sign in to comment.