Skip to content

Commit

Permalink
feat: reduce precision of interaction score to 2 decimal places
Browse files Browse the repository at this point in the history
feat: reduce precision of interaction score
  • Loading branch information
katiestahl authored Oct 10, 2023
2 parents 60f9644 + c855cfc commit c0701f8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ArrowRightIcon from '@mui/icons-material/ArrowRight';
import { truncateDecimals } from 'utils/format';

export const InteractionRecord: React.FC = () => {
const interactionId = useParams().id;
Expand Down Expand Up @@ -61,7 +62,7 @@ export const InteractionRecord: React.FC = () => {
Interaction Score:
</TableCell>
<TableCell className="attribute-value">
{data?.interaction?.interactionScore}
{truncateDecimals(data?.interaction?.interactionScore, 2)}
</TableCell>
</TableRow>

Expand Down

0 comments on commit c0701f8

Please sign in to comment.