From d7cda4887994e90b7dfb8892f41d4b6de7b5ed71 Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 13 Jun 2024 12:06:32 -0700 Subject: [PATCH] fix display error --- src/components/voting/ConfirmationPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] );