diff --git a/src/components/DeviceLogs/index.js b/src/components/DeviceLogs/index.js
index 3d0d266..c143c73 100644
--- a/src/components/DeviceLogs/index.js
+++ b/src/components/DeviceLogs/index.js
@@ -106,7 +106,7 @@ const DeviceLogs = () => {
const getDetails = (index, logDetails) => {
if (details.includes(index))
- return {JSON.stringify(logDetails, null, 4)};
+ return {JSON.stringify(logDetails, null, 2)};
return ;
};
diff --git a/src/components/FirmwareDashboard/index.js b/src/components/FirmwareDashboard/index.js
index 340bdef..59250e6 100644
--- a/src/components/FirmwareDashboard/index.js
+++ b/src/components/FirmwareDashboard/index.js
@@ -134,7 +134,7 @@ const FirmwareDashboard = () => {
if (
parsedData.numberOfDevices === undefined ||
Number.isNaN(parsedData.numberOfDevices) ||
- parsedData === 0
+ parsedData.numberOfDevices === 0
) {
parsedData.latestSoftwareRate = '-';
} else {
diff --git a/src/components/InterfaceStatistics/LatestStatisticsModal.js b/src/components/InterfaceStatistics/LatestStatisticsModal.js
index 8277d11..89a0b61 100644
--- a/src/components/InterfaceStatistics/LatestStatisticsModal.js
+++ b/src/components/InterfaceStatistics/LatestStatisticsModal.js
@@ -51,7 +51,7 @@ const LatestStatisticsModal = ({ show, toggle }) => {
- {JSON.stringify(latestStats, null, 4)}
+ {JSON.stringify(latestStats, null, 2)}
);
diff --git a/src/components/TelemetryModal/index.js b/src/components/TelemetryModal/index.js
index 9c7546d..5653515 100644
--- a/src/components/TelemetryModal/index.js
+++ b/src/components/TelemetryModal/index.js
@@ -193,7 +193,7 @@ const TelemetryModal = ({ show, toggle }) => {
- {JSON.stringify(lastMessage, null, '\t')}
+ {JSON.stringify(lastMessage, null, 2)}