Skip to content

Commit

Permalink
Fix fixed floating points on CableWraps
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Apr 3, 2024
1 parent 84209cb commit 6aa2ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions love/src/components/MainTel/CableWraps/CableWraps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as d3 from 'd3';
import { MAX_CCW_FOLLOWING_ERROR } from 'Constants';
import { defaultNumberFormatter } from 'Utils';
import { fixedFloat } from 'Utils';
import CSCDetail from 'components/CSCSummary/CSCDetail/CSCDetail';
import styles from './CableWraps.module.css';
import CameraCableWrap from './CameraCableWrap/CameraCableWrap';
Expand Down Expand Up @@ -120,8 +120,8 @@ class CableWraps extends Component {
const rotatorSummaryState = CSCDetail.states[this.props.rotatorSummaryState];
const mountSummaryState = CSCDetail.states[this.props.mountSummaryState];
const cameraCableWrapState = CSCDetail.states[this.props.cameraCableWrapState];
const rotatorPosition = defaultNumberFormatter(this.props.rotatorPosition ?? 0);
const ccwPosition = defaultNumberFormatter(this.props.ccwPosition ?? 0);
const rotatorPosition = fixedFloat(this.props.rotatorPosition ?? 0, 4);
const ccwPosition = fixedFloat(this.props.ccwPosition ?? 0, 4);

return (
<div className={styles.cableWrapsContainer}>
Expand Down

0 comments on commit 6aa2ffd

Please sign in to comment.