diff --git a/src/components/voting/ConfirmationPanel.tsx b/src/components/voting/ConfirmationPanel.tsx index 507564c7..6f040d9e 100644 --- a/src/components/voting/ConfirmationPanel.tsx +++ b/src/components/voting/ConfirmationPanel.tsx @@ -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] );