Skip to content

Commit

Permalink
fix display error
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlesich committed Jun 13, 2024
1 parent 814e987 commit d7cda48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/voting/ConfirmationPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const ConfirmationPanel = ({
const totalPercent = useMemo(
() =>
form.values.ships.reduce((acc, curr) => {
return acc + parseFloat(curr.shipPerc.toFixed(2));
return Number((acc + Number(curr.shipPerc.toFixed(2))).toFixed(2));
}, 0),
[form.values]
);
Expand Down

0 comments on commit d7cda48

Please sign in to comment.