diff --git a/src/pages/TelemetryView/index.jsx b/src/pages/TelemetryView/index.jsx
index 22f5e28..fbbe5bd 100644
--- a/src/pages/TelemetryView/index.jsx
+++ b/src/pages/TelemetryView/index.jsx
@@ -181,12 +181,22 @@ export default function TelemetryView({idWell}) {
const handleDataSaub = (data) => {
if (data) {
+ data.forEach((_, idx) => {
+ if (data[idx].rotorSpeed < 1)
+ data[idx].rotorSpeed = 0;
+ data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
+ })
setDataSaub(data)
}
}
const handleDataSpin = (data) => {
if (data) {
+ data.forEach((_, idx) => {
+ if (data[idx].rotorSpeed < 1)
+ data[idx].rotorSpeed = 0;
+ data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
+ })
setDataSpin(data)
}
}
@@ -230,7 +240,7 @@ export default function TelemetryView({idWell}) {
-
+
{paramsGroups.map((group, index) =>
- )}
+
+ )}