From 1a234247445d00e63627cfb5b8885d2b393d49ed Mon Sep 17 00:00:00 2001 From: Sebastian Aranda Date: Wed, 18 Jan 2023 13:28:53 -0300 Subject: [PATCH 1/2] Extend Value component to include units Fix error of Value on the SummaryPanel component --- .../components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx | 6 ++++-- love/src/components/GeneralPurpose/SummaryPanel/Value.jsx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx b/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx index d59bec17f..06d85111e 100644 --- a/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx +++ b/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx @@ -206,7 +206,8 @@ export default class SummaryTable extends Component { - {this.props.loadCell === "Unknown" ? (this.props.loadCell) : (this.props.loadCell).toFixed(2) + ' kg' } + {/* {this.props.loadCell === "Unknown" ? (this.props.loadCell) : (this.props.loadCell).toFixed(2) + ' kg' } */} + {this.props.loadCell} - {this.props.m1AirPressure === "Unknown" ? (this.props.m1AirPressure) : (this.props.m1AirPressure).toFixed(2) + ' Pa' } + {/* {this.props.m1AirPressure === "Unknown" ? (this.props.m1AirPressure) : (this.props.m1AirPressure).toFixed(2) + ' Pa' } */} + {this.props.m1AirPressure} {parsedChild.toFixed ? parsedChild.toFixed(3) : parsedChild}; + return {parsedChild}; }; export default Value; From 00a36548b81fa9b326a4eed474480cdbba606426 Mon Sep 17 00:00:00 2001 From: Sebastian Aranda Date: Wed, 18 Jan 2023 13:31:22 -0300 Subject: [PATCH 2/2] Remove unused comments --- love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx b/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx index 06d85111e..3ce264de5 100644 --- a/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx +++ b/love/src/components/AuxTel/Mount/SummaryPanel/SummaryPanel.jsx @@ -206,7 +206,6 @@ export default class SummaryTable extends Component { - {/* {this.props.loadCell === "Unknown" ? (this.props.loadCell) : (this.props.loadCell).toFixed(2) + ' kg' } */} {this.props.loadCell} - {/* {this.props.m1AirPressure === "Unknown" ? (this.props.m1AirPressure) : (this.props.m1AirPressure).toFixed(2) + ' Pa' } */} {this.props.m1AirPressure}