Skip to content

Commit

Permalink
Remove unnecessary pressure threshold check
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 15, 2024
1 parent ce5af56 commit f598b98
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions frontend/src/components/Pages/RobotPage/RobotPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,16 @@ export const RobotPage = () => {
{selectedRobot.status !== RobotStatus.Offline && (
<>
<BatteryStatusDisplay itemSize={48} batteryLevel={selectedRobot.batteryLevel} />
{selectedRobot.model.upperPressureWarningThreshold && (
<PressureStatusDisplay
itemSize={48}
pressureInBar={selectedRobot.pressureLevel}
upperPressureWarningThreshold={
selectedRobot.model.upperPressureWarningThreshold
}
lowerPressureWarningThreshold={
selectedRobot.model.lowerPressureWarningThreshold
}
/>
)}
<PressureStatusDisplay
itemSize={48}
pressureInBar={selectedRobot.pressureLevel}
upperPressureWarningThreshold={
selectedRobot.model.upperPressureWarningThreshold
}
lowerPressureWarningThreshold={
selectedRobot.model.lowerPressureWarningThreshold
}
/>
</>
)}
<RobotStatusChip status={selectedRobot.status} />
Expand Down

0 comments on commit f598b98

Please sign in to comment.